Now you can say:
class Song < ActiveRecord::Base
attr_accessor :virtual_attribute
assignable_values_for :virtual_attribute do
%w[air fluff]
end
end
Posted by Martin Straub to makandra dev (2014-04-17 10:11)
Now you can say:
class Song < ActiveRecord::Base
attr_accessor :virtual_attribute
assignable_values_for :virtual_attribute do
%w[air fluff]
end
end