Displaying 1 result from an estimated 1 matches for "attribute_methods_generated".
2011 Feb 05
3
ActiveModel::AttributeMethods limiting
...attribute_methods([name])
end
end
class Article < Model
property :title
property :body
property :published_at, Time
end
In the above example, attribute methods will be defined just
for :title. I don''t see any nice workaround.
So what is the purpose of
AttributeMethods#attribute_methods_generated? I can''t imagine any use
case for this. What about removing it entirely and providing
#define_attribute_method(s) with ability to call it multiple times? Am
I missing something?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" g...