Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
olbrich committed Sep 3, 2018
1 parent 4128242 commit 36b6e91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/devise-security/models/password_expirable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ def update_password_changed
# {Float}, or {true}
def password_expiration_enabled?
expire_password_after.is_a?(1.class) ||
expire_password_after.is_a?(Float) ||
expire_password_on_demand?
expire_password_after.is_a?(Float) ||
expire_password_on_demand?
end

# When +expire_password_after+ is set to +true+ then only expire passwords
Expand Down

0 comments on commit 36b6e91

Please sign in to comment.