translations_ennder 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -66,3 +66,6 @@ Enfin testé
66
66
  activerecord.models.attributes.sessions.password
67
67
  activerecord.models.attributes.user.password
68
68
  activerecord.models.attributes.users.password
69
+
70
+ == 1.1.5 / 2011-06-26
71
+ * set_locale, change la locale que si session existe
@@ -48,6 +48,11 @@ module ActionController
48
48
  # Instance methods here
49
49
 
50
50
  def set_locale
51
+ #Il faut une session
52
+ if session[:session_id].blank?
53
+ return
54
+ end
55
+
51
56
  _param_locale = params[:locale]
52
57
  if (!_param_locale.blank?) and _param_locale.match /^(en|fr)$/
53
58
  #Vient du paramètre de requête
data/version.txt CHANGED
@@ -1 +1 @@
1
- 1.1.4
1
+ 1.1.5
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: translations_ennder
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 4
10
- version: 1.1.4
9
+ - 5
10
+ version: 1.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ennder
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-16 00:00:00 +02:00
18
+ date: 2011-06-28 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency