localyzed 0.0.1.4 → 0.0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,9 +24,8 @@ class ActionController::Base
24
24
  @translatable = true # used to display or hide the languages menu
25
25
  if ( !request.xhr? && ( !request.path.match(/\/(en|fr)(\/|$)/) || params[:locale] != I18n.locale.to_s) && request.method == 'GET')
26
26
  flash.keep
27
- redirect_to(url_for(params.merge(:locale => I18n.locale.to_s, :from_l => (params[:locale] if params[:locale]))), :status => :moved_permanently)
28
- end
29
- end
27
+ redirect_to(url_for(params.merge(:locale => I18n.locale.to_s, :from_l => (params[:locale] if params[:locale]))), :status => :moved_permanently)
28
+ end
30
29
  end
31
30
 
32
31
  private
@@ -1,3 +1,3 @@
1
1
  module Localyzed
2
- VERSION = "0.0.1.4"
2
+ VERSION = "0.0.1.5"
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.1.4
4
+ version: 0.0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: