rails_current 1.6.1 → 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rails_current.rb +3 -1
- data/rails_current.gemspec +1 -1
- metadata +2 -2
data/lib/rails_current.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
module Current
|
4
4
|
def Current.version
|
5
|
-
'1.6.
|
5
|
+
'1.6.2'
|
6
6
|
end
|
7
7
|
|
8
8
|
def Current.dependencies
|
@@ -218,6 +218,7 @@ if defined?(Rails)
|
|
218
218
|
#
|
219
219
|
module Current
|
220
220
|
attribute(:controller)
|
221
|
+
attribute(:action)
|
221
222
|
attribute(:user)
|
222
223
|
end
|
223
224
|
|
@@ -230,6 +231,7 @@ if defined?(Rails)
|
|
230
231
|
prepend_before_filter do |controller|
|
231
232
|
Current.clear
|
232
233
|
Current.controller = controller
|
234
|
+
Current.action = controller.send(:action_name)
|
233
235
|
end
|
234
236
|
|
235
237
|
extend Current
|
data/rails_current.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_current
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: map
|