Module: CantangoEditor::Configuration
- Extended by:
- Configuration
- Included in:
- Configuration
- Defined in:
- lib/cantango_editor/configuration.rb
Instance Method Summary collapse
- #actions_default ⇒ Object
- #models_default ⇒ Object
- #permission_groups_default ⇒ Object
- #permission_types_default ⇒ Object
Instance Method Details
#actions_default ⇒ Object
30 31 32 |
# File 'lib/cantango_editor/configuration.rb', line 30 def actions_default [:create, :read, :update, :delete, :manage] end |
#models_default ⇒ Object
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_default ⇒ Object
26 27 28 |
# File 'lib/cantango_editor/configuration.rb', line 26 def { :roles => [:admin, :user] } end |
#permission_types_default ⇒ Object
22 23 24 |
# File 'lib/cantango_editor/configuration.rb', line 22 def [:user_types, :account_types, :roles, :role_groups, :licenses, :users] end |