lib/rails/auth/credentials.rb in rails-auth-0.2.0 vs lib/rails/auth/credentials.rb in rails-auth-0.3.0
- old
+ new
@@ -23,10 +23,10 @@
# @param [Object] :credential object to add to the environment
#
def add_credential(env, type, credential)
credentials = env[CREDENTIALS_ENV_KEY] ||= {}
- fail ArgumentError, "credential #{type} already added to request" if credentials.key?(type)
+ raise ArgumentError, "credential #{type} already added to request" if credentials.key?(type)
credentials[type] = credential
env
end
end