Hi,
I would like to rename the setter of "attribute_A" with the following:
def set_attribute_A(val)
self.attribute_A = val
end
private
def attribute_A=(val)
super
end
But then I get "NoMethodError: Attempt to call private method" I thought
that a private method is accessible from within the same instance.
Please help.
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---