Sha256: 4498720cb1928156723b872aceccb8e99c23c6733e08e03db022a83035864dce

Contents?: true

Size: 176 Bytes

Versions: 26

Compression:

Stored size: 176 Bytes

Contents

class UserRoleType < AbAdmin::Models::TypeModel
  self.codes = [:default, :redactor, :moderator, :admin]
  self.i18n_scope = [:admin, :user, :role]

  define_enum_by_codes
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ab_admin-0.2.2 lib/generators/ab_admin/install/templates/models/user_role_type.rb
ab_admin-0.2.1 lib/generators/ab_admin/install/templates/models/user_role_type.rb
ab_admin-0.2.0 lib/generators/ab_admin/install/templates/models/user_role_type.rb
ab_admin-0.1.2 lib/generators/ab_admin/install/templates/models/user_role_type.rb
ab_admin-0.1.1 lib/generators/ab_admin/install/templates/models/user_role_type.rb
ab_admin-0.1.0 lib/generators/ab_admin/install/templates/models/user_role_type.rb