vendor/refinerycms/images/app/helpers/admin/images_helper.rb in refinerycms-0.9.8 vs vendor/refinerycms/images/app/helpers/admin/images_helper.rb in refinerycms-0.9.8.1
- old
+ new
@@ -12,10 +12,10 @@
image_views.reject {|image_view| image_view.to_s == current_image_view.to_s }
end
def change_list_mode_if_specified
if action_name == 'index' and params[:view].present? and image_views.include?(params[:view].to_sym)
- RefinerySetting[:preferred_image_view] = params[:view]
+ RefinerySetting.set(:preferred_image_view, params[:view])
end
end
def images_paginator(collection, dialog = false)
will_paginate collection, :previous_label => '« Previous',