app/models/tramway/user/user.rb in tramway-admin-1.20 vs app/models/tramway/user/user.rb in tramway-admin-1.20.1
- old
+ new
@@ -1,10 +1,10 @@
# frozen_string_literal: true
class Tramway::User::User < ::Tramway::Core::ApplicationRecord
has_secure_password # FIXME: remove repeating from tramway-user
- enumerize :role, in: %i[user admin], default: :user
+ enumerize :role, in: %i[user admin], default: :admin
def admin?
role.admin?
end