Hi,

I was working on a plugin to enhance ActiveRecord's models so that it's
easy to handle decimal numbers and store them as integers. I was
dynamically creating instance methods to output the formatted attribute
(145 becomes 14.5)

Now there is a problem with Rails forms (for example), as they access
the attributes with instance_variable_get.

So to intercept that call, should I use alias_method_chain?


Regards
-- 
Posted via http://www.ruby-forum.com/.

-- 
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.

Reply via email to