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(base)
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
@@ -1,3 +1,3 @@
1
1
  module Localyzed
2
- VERSION = "0.0.3.1"
2
+ VERSION = "0.0.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: localyzed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3.1
4
+ version: 0.0.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: