Skip to content

Commit

Permalink
Merge pull request refinery#21 from wakeless/master
Browse files Browse the repository at this point in the history
::Admin::BaseController -> ::Refinery::AdminController
  • Loading branch information
parndt committed Sep 5, 2011
2 parents 9393bfc + bf130cb commit d05cd63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/refinery/i18n.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def find_or_set_locale
protected :default_url_options, :find_or_set_locale
end

::Admin::BaseController.class_eval do
::Refinery::AdminController.class_eval do
def find_or_set_locale
if (params[:set_locale] and ::Refinery::I18n.locales.keys.map(&:to_sym).include?(params[:set_locale].to_sym))
::Refinery::I18n.current_locale = params[:set_locale].to_sym
Expand Down

0 comments on commit d05cd63

Please sign in to comment.