hello everybody.

i think it'd be very convenient to have the builder#object as an optional 
second parameter in the block for fields_for, e.g.:

fields_for(:comments) do |builder, object|
  # builder.object === object
end

my proposal in code:
https://github.com/glaszig/rails/commit/f22095f0ac120852fff7efc61b6bdf7401b39ad5

before i request a pull - what do you think?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-core/-/DpEfiDSbYcUJ.
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-core?hl=en.

Reply via email to