Class: Settings
- Inherits:
-
Object
- Object
- Settings
- Defined in:
- lib/hancock/rails_admin_settings_patch.rb
Class Method Summary collapse
Class Method Details
.enabled?(key) ⇒ Boolean
245 246 247 |
# File 'lib/hancock/rails_admin_settings_patch.rb', line 245 def self.enabled?(key) getnc(key).enabled? end |
.exists?(key) ⇒ Boolean
242 243 244 |
# File 'lib/hancock/rails_admin_settings_patch.rb', line 242 def self.exists?(key) !getnc(key).nil? end |
.rename(old_key, new_key) ⇒ Object
248 249 250 |
# File 'lib/hancock/rails_admin_settings_patch.rb', line 248 def self.rename(old_key, new_key) get_default_ns.rename(old_key, new_key) end |