lib/ab_admin/models/user.rb in ab_admin-0.3.4 vs lib/ab_admin/models/user.rb in ab_admin-0.3.5
- old
+ new
@@ -23,10 +23,10 @@
def set_default_role
self.user_role_id ||= ::UserRoleType.default.id
end
def generate_password!
- raw_password = Rails.env.test? ? '654321' : Devise.friendly_token[0..7]
+ raw_password = Rails.env.test? ? '654321' : ::Devise.friendly_token[0..7]
self.password = self.password_confirmation = raw_password
self.save(validate: false)
raw_password
end
\ No newline at end of file