Class: RailsAdminSettings::Namespaced
- Inherits:
-
Object
- Object
- RailsAdminSettings::Namespaced
- Defined in:
- lib/hancock/rails_admin_settings_patch.rb
Instance Method Summary collapse
Instance Method Details
#enabled?(key) ⇒ Boolean
258 259 260 |
# File 'lib/hancock/rails_admin_settings_patch.rb', line 258 def enabled?(key) getnc(key).enabled? end |
#exists?(key) ⇒ Boolean
255 256 257 |
# File 'lib/hancock/rails_admin_settings_patch.rb', line 255 def exists?(key) !getnc(key).nil? end |
#rename(old_key, new_key) ⇒ Object
261 262 263 264 265 266 267 |
# File 'lib/hancock/rails_admin_settings_patch.rb', line 261 def rename(old_key, new_key) _obj = getnc(old_key) if _obj _obj.key = new_key _obj.save end end |