Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

removed the page.slug.locale part of the globalize! call.

  • Loading branch information...
commit 3574af1311c1f07fa652f3c6a04bf1e03e725c0e 1 parent 81387fa
Peter Berkenbosch peterberkenbosch authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  pages/app/controllers/admin/pages_controller.rb
2  pages/app/controllers/admin/pages_controller.rb
@@ -19,7 +19,7 @@ def new
19 19 protected
20 20
21 21 def globalize!
22   - Thread.current[:globalize_locale] = (params[:switch_locale] || (@page.present? && @page.slug.locale) || ::Refinery::I18n.default_frontend_locale)
  22 + Thread.current[:globalize_locale] = (params[:switch_locale] || ::Refinery::I18n.default_frontend_locale)
23 23 end
24 24
25 25 def show_errors_for_reserved_slug(exception)

0 comments on commit 3574af1

Please sign in to comment.
Something went wrong with that request. Please try again.