vendor/plugins/images/app/helpers/admin/images_helper.rb in refinerycms-0.9.6.29 vs vendor/plugins/images/app/helpers/admin/images_helper.rb in refinerycms-0.9.6.30
- old
+ new
@@ -11,10 +11,10 @@
def other_image_views
image_views.reject {|image_view| image_view.to_s == current_image_view.to_s }
end
def change_list_mode_if_specified
- unless params[:action] != "index" or params[:view].blank? or !image_views.include? params[:view].to_sym
+ unless action_name != "index" or params[:view].blank? or !image_views.include? params[:view].to_sym
RefinerySetting[:preferred_image_view] = params[:view]
end
end
def images_paginator(collection, dialog = false)