Lee Irving(MagpieUK)
2011-Jun-17 13:44 UTC
[Rails 3.1rc4] accepts_nested_attributes & attr_accessible :as => :role
I have an object that accepts nested attributes for a child object, both objects have :attr_accessible setup with the same roles defined. When I pass in the attributes for the child object I was hoping that it would trigger the attr_accessible for the same role, i,e. the role would flow down the chain. This does not seem to be the case, should it? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Andrew White
2011-Jun-17 20:01 UTC
Re: [Rails 3.1rc4] accepts_nested_attributes & attr_accessible :as => :role
On 17 Jun 2011, at 14:44, Lee Irving(MagpieUK) wrote:> I have an object that accepts nested attributes for a child object, > both objects have :attr_accessible setup with the same roles defined. > > When I pass in the attributes for the child object I was hoping that > it would trigger the attr_accessible for the same role, i,e. the role > would flow down the chain. > > This does not seem to be the case, should it?I think I''ve fixed this already - can you confirm? https://github.com/rails/rails/issues/1673 Andrew -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Lee Irving(MagpieUK)
2011-Jun-17 20:38 UTC
Re: [Rails 3.1rc4] accepts_nested_attributes & attr_accessible :as => :role
I will try and get back to you On Jun 17, 9:01 pm, Andrew White <an...@pixeltrix.co.uk> wrote:> On 17 Jun 2011, at 14:44, Lee Irving(MagpieUK) wrote: > > > I have an object that accepts nested attributes for a child object, > > both objects have :attr_accessible setup with the same roles defined. > > > When I pass in the attributes for the child object I was hoping that > > it would trigger the attr_accessible for the same role, i,e. the role > > would flow down the chain. > > > This does not seem to be the case, should it? > > I think I''ve fixed this already - can you confirm? > > https://github.com/rails/rails/issues/1673 > > Andrew-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.