app/controllers/admin/settings_controller.rb in ab_admin-0.2.3 vs app/controllers/admin/settings_controller.rb in ab_admin-0.3.0
- old
+ new
@@ -1,17 +1,18 @@
class ::Admin::SettingsController < ::Admin::BaseController
- authorize_resource :class => Settings
+ authorize_resource class: Settings
- defaults :resource_class => Settings
+ defaults resource_class: Settings
def update
Settings.instance.save(params[:settings])
+ Settings.reload_checker.expire
redirect_to :back
end
def cache_clear
Rails.cache.clear
- render :nothing => true
+ render nothing: true
end
private
def action_items
\ No newline at end of file