app/volt/models/user.rb in volt-0.8.22 vs app/volt/models/user.rb in volt-0.8.23
- old
+ new
@@ -1,8 +1,6 @@
-if RUBY_PLATFORM != 'opal'
- require 'bcrypt'
-end
+require 'bcrypt' if RUBY_PLATFORM != 'opal'
module Volt
class User < Model
# returns true if the user configured using the username
def self.login_field
@@ -26,8 +24,7 @@
self._hashed_password = BCrypt::Password.create(val)
else
self._password = val
end
end
-
end
end