lib/declarative_authorization/in_controller.rb
# Collecting all the ControllerPermission objects from the controller
# hierarchy.  Permissions for actions are overwritten by calls to 
# filter_access_to in child controllers with the same action.
Collecting all the ControllerPermission objects from the controller
hierarchy.  Permissions for actions are overwritten by calls to
filter_access_to in child controllers with the same action.
Collecting all the ControllerPermission objects from the controller hierarchy . Permissions for actions are overwritten by calls to filter_access_to in child controllers with the same action .
def all_filter_access_permissions 
        ancestors.inject([]) do |perms, mod|
          if mod.respond_to?(:filter_access_permissions)
            perms + 
              mod.filter_access_permissions.collect do |p1| 
                p1.clone.remove_actions(perms.inject(Set.new) {|actions, p2| actions + p2.actions})
              end
          else
            perms
          end
        end
      end
def all_filter_access_permissions ancestors . inject ( [ ] ) do | perms , mod | if mod . respond_to? ( :filter_access_permissions ) perms + mod . filter_access_permissions . collect do | p1 | p1 . clone . remove_actions ( perms . inject ( Set . new ) { | actions , p2 | actions + p2 . actions } ) end else perms end end end
Collecting all the ControllerPermission objects from the controller
hierarchy.
Collecting all the ControllerPermission objects from the controller hierarchy .
# :nodoc: