golden-setting 0.5.0 → 0.6.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: 800d09425b041c08a44ab9cac58bb4782f5fbb94
|
4
|
+
data.tar.gz: 7e62725cd53150713e3875d65c557508a8f91d9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c96623b32faee6ca82e7ce5fe3f3b0bb2d52c04c58032bbd157ba929eb221b67e774e64c7f46ec987cbe0fda0a170409d9cb4ad270eeb86effeed1147979e63
|
7
|
+
data.tar.gz: 3c694b300dcb4184452f3311e3c44edf520b899d633a4c736c6c792a846ca612000c4b784012f40c771f325297f1d58508110ff2f7e6847df9b591c860cdc511
|
@@ -59,14 +59,13 @@ class Golden::Setting::SettingsController < ApplicationController
|
|
59
59
|
|
60
60
|
def new_setting
|
61
61
|
value = params[:setting].delete :value
|
62
|
-
@setting = @setting_class.new
|
62
|
+
@setting = @setting_class.new setting_params
|
63
63
|
@setting.value = value
|
64
64
|
end
|
65
65
|
|
66
66
|
def setting_params
|
67
67
|
if params.respond_to? :permit
|
68
|
-
|
69
|
-
params.require(:setting).permit(fields)
|
68
|
+
params.require(:setting).permit(Golden::Setting.permitted_fields)
|
70
69
|
else
|
71
70
|
params[:setting]
|
72
71
|
end
|
data/lib/golden/setting.rb
CHANGED
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.6.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-08-
|
11
|
+
date: 2013-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|