Sha256: 2df404437d3f29d9589f85e2608414e548a5634ef94214f08010f19632b59222

Contents?: true

Size: 218 Bytes

Versions: 20

Compression:

Stored size: 218 Bytes

Contents

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
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
tramway-user-1.1.7 app/models/tramway/user/user.rb
tramway-user-1.1.6 app/models/tramway/user/user.rb
tramway-user-1.1.5 app/models/tramway/user/user.rb
tramway-user-1.1.4.1 app/models/tramway/user/user.rb
tramway-user-1.1.4 app/models/tramway/user/user.rb
tramway-user-1.1.3 app/models/tramway/user/user.rb
tramway-user-1.1.2 app/models/tramway/user/user.rb
tramway-user-1.1.1 app/models/tramway/user/user.rb
tramway-user-1.1 app/models/tramway/user/user.rb
tramway-user-1.0.5 app/models/tramway/user/user.rb
tramway-user-1.0.4 app/models/tramway/user/user.rb
tramway-user-1.0.3.3 app/models/tramway/user/user.rb
tramway-user-1.0.3.2 app/models/tramway/user/user.rb
tramway-user-1.0.3.1 app/models/tramway/user/user.rb
tramway-user-1.0.3 app/models/tramway/user/user.rb
tramway-user-1.0.2.3 app/models/tramway/user/user.rb
tramway-user-1.0.2.2 app/models/tramway/user/user.rb
tramway-user-1.0.2.1 app/models/tramway/user/user.rb
tramway-user-1.0.2 app/models/tramway/user/user.rb
tramway-user-1.0.1.14 app/models/tramway/user/user.rb