Class: ActiveRecord::Base
- Inherits:
-
Object
- Object
- ActiveRecord::Base
- Defined in:
- lib/awesome_form_attributes/setting.rb,
lib/awesome_form_attributes/setting.rb
Class Method Summary collapse
- .default_local_path(singname = oname) ⇒ Object
- .displayed_columns_local_path(singname = oname) ⇒ Object
- .oname ⇒ Object
Class Method Details
.default_local_path(singname = oname) ⇒ Object
13 14 15 |
# File 'lib/awesome_form_attributes/setting.rb', line 13 def default_local_path(singname = oname) "activerecord.attributes.#{singname}" end |
.displayed_columns_local_path(singname = oname) ⇒ Object
17 18 19 |
# File 'lib/awesome_form_attributes/setting.rb', line 17 def displayed_columns_local_path(singname = oname) "awesome_form_attributes.displayed_columns.#{singname}" end |
.oname ⇒ Object
9 10 11 |
# File 'lib/awesome_form_attributes/setting.rb', line 9 def oname self.table_name.singularize end |