require 'tramway/core/application_record' class Tramway::User::User < ::Tramway::Core::ApplicationRecord has_secure_password # FIXME replace to tramway-admin enumerize :role, in: [ :user, :admin ], default: :user def admin? role.admin? end # FIXME end