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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Current
4
4
  def Current.version
5
- '1.6.1'
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "rails_current"
6
- spec.version = "1.6.1"
6
+ spec.version = "1.6.2"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "rails_current"
9
9
  spec.description = "description: rails_current kicks the ass"
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.1
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-06 00:00:00.000000000 Z
12
+ date: 2012-06-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: map