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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e10bc3bbf37ba294c7adf764fa154e617492e7da
|
4
|
+
data.tar.gz: 9eaf95dcd5b5d33ece8205ced09f6ee04f14b6d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
17
|
+
migration_template file, File.join('db/migrate', class_path, file)
|
18
18
|
end
|
19
19
|
|
20
20
|
def generate_model
|
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.
|
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-
|
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.
|
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.
|