activeadmin_settings_cached 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: beb3913f9186773b0e8ef8b9295ab8a939c33f01
4
- data.tar.gz: 3b81583b3c70a0157bd0a138222df85f2935f582
3
+ metadata.gz: a234d2b3c9d9c19458b00ee6ebe8af9a7e3fc059
4
+ data.tar.gz: 5e36ecdc24654ac093f47d535d4ca41ff7a32bbc
5
5
  SHA512:
6
- metadata.gz: dda049847a5d83744cc28d2d10bf7eaecf9b961c6d9eeba4ae363d6e6df06235e709ec71374a76cda23260f62ffb9760ed945205bd197d2a0167b1cfd76897bc
7
- data.tar.gz: 09abfb2ac846bc984ef5b927e3e44bc2cf188b0aa21625d0d4a3acb21ba1b395c849cffdfa17bb7587196bc0fb9140e128adb9911d2abe7e2019af7d8db5239b
6
+ metadata.gz: eb3960656d5aea1fa39585d632242bc3e333b7735c64eb88324ec5cd4941632218a5e25abf7f0da75dc060bcc9105a7e2ff4a032cef7bef4384712fad3dc4b17
7
+ data.tar.gz: c5be99fd6db507ab68462b8056f9c379566ec5e6406e87961b0b2782ba91fe90c0c1f46e91fcecb424cc6b51d08664c30aa53e2126705b7f37001b9f82ad976c
data/README.md CHANGED
@@ -49,4 +49,11 @@ en:
49
49
  name: 'My Awesome Lolaized Setting'
50
50
  ```
51
51
 
52
+ If you settings model named not Settings, you can define model name in
53
+ `config/initializers/active_admin_settings_cached.rb`
54
+
55
+ ``` ruby
56
+ ActiveadminSettingsCached.settings_class = 'AdvancedSetting'
57
+ ```
58
+
52
59
  For how use Settings in you application see documentation fo rails-settings-cached gem https://github.com/huacnlee/rails-settings-cached
@@ -10,7 +10,7 @@
10
10
  <tbody>
11
11
  <% controller.settings_list.each_pair do |name, value| %>
12
12
  <tr class="odd">
13
- <td><strong><%= t("settings.attributes.#{name}.name", default: name) %></strong></td>
13
+ <td><strong><%= f.label t("settings.attributes.#{name}.name", default: name) %></strong></td>
14
14
  <td>
15
15
  <div class='form'>
16
16
  <ol><%= f.input name, label: false, input_html: { value: value } %></ol>
@@ -1,3 +1,3 @@
1
1
  module ActiveadminSettingsCached
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin_settings_cached
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Semyon Pupkov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-03 00:00:00.000000000 Z
11
+ date: 2015-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  version_requirements: !ruby/object:Gem::Requirement