localized_url_for 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,9 @@ module LocalizedUrlFor
4
4
 
5
5
  def url_for_with_locale(options)
6
6
  localized_options = options
7
- localized_options = options.merge(:locale => I18n.locale) if options.kind_of?(Hash)
7
+ if options.kind_of?(Hash)
8
+ localized_options[:locale] ||= I18n.locale
9
+ end
8
10
  url_for_without_locale(localized_options)
9
11
  end
10
12
 
@@ -1,3 +1,3 @@
1
1
  module LocalizedUrlFor
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 3
9
- version: 0.0.3
8
+ - 4
9
+ version: 0.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Oleksandr Mishyn
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-04-09 00:00:00 +03:00
17
+ date: 2012-04-10 00:00:00 +03:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency