search for: some_other_property

Displaying 1 result from an estimated 1 matches for "some_other_property".

2012 Jan 25
4
serializable_hash and serializable_add_includes
...for the included model (model2)? Same goes for :methods and :except options set at the top level. I would expect the :only , :except, and :methods options to be removed if they are not specified directly on the included model as such: model1.to_json(:include => {:model2 => {:only => [:some_other_property]}, :only => [:id]) Can someone please explain to me why it works this way. -- 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 rubyonrails-talk-/JYP...