golden-setting 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73d045fd6c1c360eea89881dc9dd6ade617f1f79
4
- data.tar.gz: 2b7c5cae33d3d537ec1cc25074ebfa3ff048cd0d
3
+ metadata.gz: e10bc3bbf37ba294c7adf764fa154e617492e7da
4
+ data.tar.gz: 9eaf95dcd5b5d33ece8205ced09f6ee04f14b6d8
5
5
  SHA512:
6
- metadata.gz: c086262dfc0d1d86c98a64f239c0890f7a7ee1d2dad4941e99550114bb527e0fdf6f31bc02133e61d528fbdd738ad6eb3a6d30ebafd542447128e278c95c2fdd
7
- data.tar.gz: 7e4aa48952e29c8fdd73926e8173e56c604fa1d8bca831248a2e63355ae52127d1602032fb61fca41929732247edc09b4de58a586d22a9c80e8614503e3d8386
6
+ metadata.gz: 777e42ef1b19c72937e45df4a61a6d0815d424c307bd5a77b0f2885efe828f37dcd15012e4174619007c126e9fefb0fb3b48406e463d5dca49eb5afc9ab87db0
7
+ data.tar.gz: 3e7e51f341aa892a3192a0f3761e8da352a2be282daf1e5e0eaec611b4b25d162bf45415f43d20880d7b03a7a85889933cb73bb3604f4996fecdefb1a4a56f7a
data/README.md CHANGED
@@ -59,7 +59,7 @@ can :batch_update, Setting
59
59
  You will need to add these basic configures of `golden-setting` for your needs.
60
60
 
61
61
  * `groups` for grouping settings with a name
62
- # `default_group` for saving settings with a group
62
+ * `default_group` for saving settings with a group
63
63
  * `default_tab` for a group of settings shown in tab views
64
64
 
65
65
  Edit `config/initializers/golden_setting.rb` for more detail.
@@ -1,6 +1,6 @@
1
1
  class Golden::Setting::SettingsController < ApplicationController
2
2
  before_filter :authenticate_session!
3
- before_filter :load_setting_class, only: [:index, :create, :list]
3
+ before_filter :load_setting_class, only: [:index, :create, :list, :batch_update]
4
4
  before_filter :new_setting, only: [:create]
5
5
  load_and_authorize_resource :setting, class: Golden::Setting.setting_class, parent: false
6
6
 
@@ -14,7 +14,7 @@ class Golden::Setting::InstallGenerator < Rails::Generators::NamedBase
14
14
 
15
15
  def generate_migration
16
16
  file = 'create_golden_settings.rb'
17
- #migration_template file, File.join('db/migrate', class_path, file)
17
+ migration_template file, File.join('db/migrate', class_path, file)
18
18
  end
19
19
 
20
20
  def generate_model
@@ -1,5 +1,5 @@
1
1
  module Golden
2
2
  module Setting
3
- VERSION = '0.1.0'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: golden-setting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tse-Ching Ho
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-21 00:00:00.000000000 Z
11
+ date: 2013-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  version: '0'
182
182
  requirements: []
183
183
  rubyforge_project:
184
- rubygems_version: 2.0.0
184
+ rubygems_version: 2.0.3
185
185
  signing_key:
186
186
  specification_version: 4
187
187
  summary: persists settings in database and keep alive in cache.