README.md in rails-settings-cached-0.6.3 vs README.md in rails-settings-cached-0.6.4
- old
+ new
@@ -214,21 +214,20 @@
def edit
end
def update
if @setting.value != params[:setting][:value]
- @setting.value = YAML.load(params[:setting][:value])
+ @setting.value = params[:setting][:value]
@setting.save
redirect_to admin_settings_path, notice: 'Setting has updated.'
else
redirect_to admin_settings_path
end
end
def get_setting
@setting = Setting.find_by(var: params[:id]) || Setting.new(var: params[:id])
- @setting[:value] = Setting[params[:id]]
end
end
end
```
@@ -259,5 +258,9 @@
<% end %>
```
Also you may use [rails-settings-ui](https://github.com/accessd/rails-settings-ui) gem
for building ready to using interface with validations.
+
+## Use case:
+
+- [ruby-china/ruby-china](https://github.com/ruby-china/ruby-china)