The idea is to make an ability to give a Proc to 'partial' option. It will 
be yielded with 'object' argument:

render partial: -> { |car| "#{car.to_partial_path}_#{your_role_for(car)}" 
}, collection: @cars

It's backward compatibility...

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-core+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to