instance method
_superclass_delegating_accessor
Ruby on Rails 3.1.12
Since v3.0.20 Last seen in v4.2.9 PrivateSignature
_superclass_delegating_accessor(name, options = {})
No documentation comment.
Parameters
-
namereq -
optionsopt = {}
Source
# File activesupport/lib/active_support/core_ext/class/delegating_attributes.rb, line 37
def _superclass_delegating_accessor(name, options = {})
singleton_class.send(:define_method, "#{name}=") do |value|
_stash_object_in_method(value, name, options[:instance_reader] != false)
end
send("#{name}=", nil)
end
Defined in activesupport/lib/active_support/core_ext/class/delegating_attributes.rb line 37
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Class