:include_default_locale ignored in routes.rb ? #23

Open
tomsquest opened this Issue Mar 11, 2011 · 1 comment

Projects

None yet

2 participants

@tomsquest

It seems that passing the ":include_default_locale => false" parameter in routes.rb has no effect (ie. include_default_locale is always true).

In routes.rb, what does not work :
filter :locale, :include_default_locale => false
(maybe it is not the way it should be done)

Workaround (set the attribute directly):
filter :locale
RoutingFilter::Locale.include_default_locale = false

So, maybe the problem is : how to set the include_default_locale attribute.

@asalme
asalme commented Apr 15, 2011

Set it in an initializer, thats how I do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment