Module: SmartSettings::Naming
Instance Method Summary collapse
Instance Method Details
#permitted_attributes ⇒ Object
27 28 29 |
# File 'lib/smart_settings/naming.rb', line 27 def permitted_attributes attribute_names - ['var'] end |
#to_param ⇒ Object
23 24 25 |
# File 'lib/smart_settings/naming.rb', line 23 def to_param var.to_s.parameterize end |
#var ⇒ Object
19 20 21 |
# File 'lib/smart_settings/naming.rb', line 19 def var self.class.name.to_s.demodulize.sub('Settings', '') end |