Posted over 6 years ago. Visible to the public. Linked content.

assignable_values 0.9.0 supports virtual attributes

Now you can say:

class Song < ActiveRecord::Base attr_accessor :virtual_attribute assignable_values_for :virtual_attribute do %w[air fluff] end end
Growing Rails Applications in Practice
Check out our new e-book:
Learn to structure large Ruby on Rails codebases with the tools you already know and love.

Owner of this card:

Martin Straub
Last edit:
over 6 years ago
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Martin Straub to makandra dev
This website uses short-lived cookies to improve usability.
Accept or learn more