Hey, I want custom errors.as_json behavior from my implementation of ActiveModel and with inheritance!
So how do I do something like shown in the following pseudo? module A include ActiveModel def errors.to_json "blow" end end module B include A def errors.to_json "go " + super end end So far, I've been fooling around using instance_eval on errors in A, but I can't get inheritance from that in B. Lille -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.