Module: CantangoEditor::Configuration

Extended by:
Configuration
Included in:
Configuration
Defined in:
lib/cantango_editor/configuration.rb

Instance Method Summary collapse

Instance Method Details

#actions_defaultObject



30
31
32
# File 'lib/cantango_editor/configuration.rb', line 30

def actions_default
  [:create, :read, :update, :delete, :manage]
end

#models_defaultObject



18
19
20
# File 'lib/cantango_editor/configuration.rb', line 18

def models_default
  ActiveRecord::Base.connection.tables.collect{|t| t.classify.constantize rescue nil }.compact   
end

#permission_groups_defaultObject



26
27
28
# File 'lib/cantango_editor/configuration.rb', line 26

def permission_groups_default
  { :roles => [:admin, :user] }
end

#permission_types_defaultObject



22
23
24
# File 'lib/cantango_editor/configuration.rb', line 22

def permission_types_default
  [:user_types, :account_types, :roles, :role_groups, :licenses, :users]
end