Permalink
Browse files

Remove locale from params hash on new, or else we have an attr-access…

…ible error.
  • Loading branch information...
1 parent ea84002 commit cd3f175d17a53214e47a9d365fc26e6a5197aec7 @robyurkowski robyurkowski committed Mar 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/refinery/portfolio/admin/galleries_controller.rb
View
2 app/controllers/refinery/portfolio/admin/galleries_controller.rb
@@ -9,7 +9,7 @@ class GalleriesController < ::Refinery::AdminController
:paging => false
def new
- @gallery = ::Refinery::Portfolio::Gallery.new(params.except(:controller, :action, :switch_locale))
+ @gallery = ::Refinery::Portfolio::Gallery.new(params.except(:controller, :action, :switch_locale, :locale))
end
def children

0 comments on commit cd3f175

Please sign in to comment.