Class: Adminpanel::Auth
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Adminpanel::Auth
show all
- Includes:
- Base
- Defined in:
- app/models/adminpanel/auth.rb
Class Method Summary
collapse
Methods included from Base
#correlative_order_gallery, #destroy_unattached_images
Class Method Details
.display_name ⇒ Object
37
38
39
|
# File 'app/models/adminpanel/auth.rb', line 37
def self.display_name
'Cuenta'
end
|
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.routes_options
{ except: [:edit, :update ], path: display_name.pluralize(I18n.default_locale).downcase }
end
|