Class: Adminpanel::Auth
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Adminpanel::Auth
- Includes:
- Base
- Defined in:
- app/models/adminpanel/auth.rb
Class Method Summary collapse
Class Method Details
.display_name ⇒ Object
37 38 39 |
# File 'app/models/adminpanel/auth.rb', line 37 def self.display_name 'Cuenta' end |
.form_attributes ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'app/models/adminpanel/auth.rb', line 5 def self.form_attributes [ { 'name' => { 'type' => 'text_field', 'label' => 'Cuenta:' } }, { 'value' => { 'type' => 'wysiwyg_field', 'show' => 'show', 'label' => 'Access Key' } }, { 'key' => { 'type' => 'text_field', 'label' => 'Llave' } } ] end |
.icon ⇒ Object
33 34 35 |
# File 'app/models/adminpanel/auth.rb', line 33 def self.icon 'cubes' end |
.routes_options ⇒ Object
29 30 31 |
# File 'app/models/adminpanel/auth.rb', line 29 def self. { except: [:edit, :update ], path: display_name.pluralize(I18n.default_locale).downcase } end |