Module: ActsAsRole::Role

Extended by:
ActiveSupport::Concern
Defined in:
lib/acts_as_role.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#setup_roles(role, options, column) ⇒ Object



65
66
67
68
69
# File 'lib/acts_as_role.rb', line 65

def setup_roles role, options, column
  role = setup_default_role role, options, column  
  @rolez = role.nil? ? [] : role.split("_").collect(&:to_sym)      
  save_roles
end