lib/trust/permissions.rb
def expand_aliases(actions) #:nodoc:
        expanded = []
        Array.wrap(actions).each do |action|
          if self.action_aliases[action]
            expanded += Array.wrap(self.action_aliases[action])
          else
            expanded << action
          end
        end
        expanded
      end
# Assign default requirement for whitelisting paremeters
#
# See {ActionController::Parameters.require} for how this works in Rails
# 
Assign default requirement for whitelisting paremeters
See {ActionController::Parameters.require} for how this works in Rails
Assign default requirement for whitelisting paremeters See { ActionController :: Parameters . require } for how this works in Rails
def expand_aliases(actions) 
        expanded = []
        Array.wrap(actions).each do |action|
          if self.action_aliases[action]
            expanded += Array.wrap(self.action_aliases[action])
          else
            expanded << action
          end
        end
        expanded
      end
def expand_aliases ( actions ) expanded = [ ] Array . wrap ( actions ) . each do | action | if self . action_aliases [ action ] expanded += Array . wrap ( self . action_aliases [ action ] ) else expanded << action end end expanded end
Assign default requirement for whitelisting paremeters
See {ActionController::Parameters.require} for how this works in Rails
Assign default requirement for whitelisting paremeters See { ActionController :: Parameters . require } for how this works in Rails
#:nodoc:
actions