Sha256: 1ef1a00a7e53517ef7ae1cb14ff5b059e83e5130d1a5037cab73d1d4660ad814

Contents?: true

Size: 328 Bytes

Versions: 5

Compression:

Stored size: 328 Bytes

Contents

# frozen_string_literal: true

class RoleType < Sunrise::Models::RoleType
  define_enum do |builder|
    builder.member :default,   object: new('default')
    builder.member :redactor,  object: new('redactor')
    builder.member :moderator, object: new('moderator')
    builder.member :admin,     object: new('admin')
  end
end

Version data entries

5 entries across 3 versions & 2 rubygems

Version Path
sunrise-cms-1.1.1 lib/generators/sunrise/templates/models/active_record/role_type.rb
sunrise-cms-1.1.1 lib/generators/sunrise/templates/models/mongoid/role_type.rb
sunrise-cms-1.1.0 lib/generators/sunrise/templates/models/active_record/role_type.rb
sunrise-cms-1.1.0 lib/generators/sunrise/templates/models/mongoid/role_type.rb
translation_cms-0.1.5 app/models/defaults/role_type.rb