activeadmin-settings 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module ActiveadminSettings
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -18,15 +18,15 @@ class ActiveadminSettings::Setting
18
18
 
19
19
  # Instance
20
20
  def type
21
- ActiveadminSettings.all_settings[name]["type"] ||= "string"
21
+ (ActiveadminSettings.all_settings[name]["type"] ||= "string").to_s
22
22
  end
23
23
 
24
24
  def description
25
- ActiveadminSettings.all_settings[name]["description"] ||= ""
25
+ (ActiveadminSettings.all_settings[name]["description"] ||= "").to_s
26
26
  end
27
27
 
28
28
  def default_value
29
- ActiveadminSettings.all_settings[name]["default_value"] ||= ""
29
+ (ActiveadminSettings.all_settings[name]["default_value"] ||= "").to_s
30
30
  end
31
31
 
32
32
  def value
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -63,7 +63,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
63
63
  version: '0'
64
64
  segments:
65
65
  - 0
66
- hash: 1834773827984310643
66
+ hash: 2281893451753240752
67
67
  required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  none: false
69
69
  requirements: