lib/dailycred/client.rb in dailycred-0.1.35 vs lib/dailycred/client.rb in dailycred-0.1.36
- old
+ new
@@ -59,11 +59,11 @@
end
# Send a reset password email
#
# - @param [string] user the user's email or username
- def passReset(user)
+ def reset_password(user)
opts = {
:user => user
}
post "/password/api/reset", opts
end
@@ -83,9 +83,11 @@
def ssl_opts
opts = {}
if @options[:client_options] && @options[:client_options][:ssl]
opts[:ssl] = @options[:client_options][:ssl]
+ elsif Rails.configuration.respond_to? "DAILYCRED_OPTIONS"
+ opts[:ssl] = Rails.configuration.DAILYCRED_OPTIONS[:client_options][:ssl]
end
opts
end
def base_opts secure=true
\ No newline at end of file