Posted over 5 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]


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 5 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 cookies to improve usability and analyze traffic.
Accept or learn more