lib/rails_current.rb in rails_current-1.6.1 vs lib/rails_current.rb in rails_current-1.6.2

- old
+ new

@@ -1,10 +1,10 @@ # -*- encoding : utf-8 -*- module Current def Current.version - '1.6.1' + '1.6.2' end def Current.dependencies { 'map' => [ 'map' , ' >= 6.0.1' ] @@ -216,10 +216,11 @@ ## # module Current attribute(:controller) + attribute(:action) attribute(:user) end ## # @@ -228,9 +229,10 @@ if defined?(::ActionController::Base) ::ActionController::Base.module_eval do prepend_before_filter do |controller| Current.clear Current.controller = controller + Current.action = controller.send(:action_name) end extend Current include Current helper{ include Current }