1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00

Remove some trailing spaces.

This commit is contained in:
Dan Barber 2013-06-05 08:38:53 +01:00
parent 39912ecec5
commit 9c1fb4b57c

View File

@ -7,7 +7,7 @@ class AdminUser < ActiveRecord::Base
# Setup accessible (or protected) attributes for your model # Setup accessible (or protected) attributes for your model
attr_accessible :email, :password, :password_confirmation, :remember_me attr_accessible :email, :password, :password_confirmation, :remember_me
# new function to set the password without knowing the current password used in our confirmation controller. # new function to set the password without knowing the current password used in our confirmation controller.
def attempt_set_password(params) def attempt_set_password(params)
p = {} p = {}
p[:password] = params[:password] p[:password] = params[:password]
@ -27,7 +27,7 @@ class AdminUser < ActiveRecord::Base
def password_required? def password_required?
# Password is required if it is being set, but not for new records # Password is required if it is being set, but not for new records
if !persisted? if !persisted?
false false
else else
!password.nil? || !password_confirmation.nil? !password.nil? || !password_confirmation.nil?