lib/rails/auth/helpers.rb in rails-auth-2.1.3 vs lib/rails/auth/helpers.rb in rails-auth-2.1.4
- old
+ new
@@ -22,10 +22,10 @@
Env.new(rack_env).authorized?
end
# Mark what authorized the request in the Rack environment
#
- # @param [Hash] :env Rack environment
+ # @param [Hash] :rack_env Rack environment
# @param [String] :allowed_by what allowed this request
def set_allowed_by(rack_env, allowed_by)
Env.new(rack_env).tap do |env|
env.allowed_by = allowed_by
end.to_rack