lib/rails/auth/credentials.rb in rails-auth-0.1.0 vs lib/rails/auth/credentials.rb in rails-auth-0.2.0
- old
+ new
@@ -25,9 +25,11 @@
def add_credential(env, type, credential)
credentials = env[CREDENTIALS_ENV_KEY] ||= {}
fail ArgumentError, "credential #{type} already added to request" if credentials.key?(type)
credentials[type] = credential
+
+ env
end
end
# Include these functions in Rails::Auth for convenience
extend Credentials