Monday 15 April 2013

ruby on rails - how filter_resource_access loads resource(instance) in rails3 -



ruby on rails - how filter_resource_access loads resource(instance) in rails3 -

i using declarative_authorization gem in project.

awards controllers:

filter_resource_access :collection => [:index, :award_winners], :nested_in => :users

i have models users , awards, users has many awards relationships.

could 1 allow me know, how index , award_winners load resources. working fine, have modify award winners resource(instance) because somewhere reloaded , resources coming in wrong order.

ruby-on-rails collections before-filter

No comments:

Post a Comment