localyzed 0.0.3.1 → 0.0.3.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,12 @@
|
|
1
1
|
module LocalizedController
|
2
|
-
def self.included
|
2
|
+
def self.included base
|
3
3
|
base.send :before_filter, :set_locale
|
4
4
|
# redirects_to localized path if path not loaclized and request not ajax or api
|
5
5
|
base.send :before_filter, :redirect_to_localized_path_if
|
6
6
|
end
|
7
7
|
|
8
8
|
def url_options
|
9
|
-
{:locale => I18n.locale.to_s}.merge(super)
|
9
|
+
{:locale => I18n.locale.to_s, :subapp => params[:subapp]}.merge(super)
|
10
10
|
end
|
11
11
|
|
12
12
|
# sets the locale by checking user data then request param then session data then retrieving accept language data
|
data/lib/localyzed/version.rb
CHANGED