instance method
define_method_attribute=
Ruby on Rails 4.2.9
Since v3.0.20 Last seen in v4.2.9Signature
define_method_attribute=(name)
No documentation comment.
Parameters
-
namereq
Source
# File activerecord/lib/active_record/attribute_methods/write.rb, line 29
def define_method_attribute=(name)
method = WriterMethodCache[name]
generated_attribute_methods.module_eval {
define_method "#{name}=", method
}
end
Defined in activerecord/lib/active_record/attribute_methods/write.rb line 29
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::AttributeMethods::Write::ClassMethods