Sha256: f692ef28f0e50ef97129b7d583d1473a471a88ef80c589a5db88f1599502326d

Contents?: true

Size: 174 Bytes

Versions: 9

Compression:

Stored size: 174 Bytes

Contents

class UserState < AbAdmin::Models::TypeModel
  self.codes = [:pending, :active, :suspended, :deleted]
  self.i18n_scope = [:admin, :user, :state]

  define_enum_by_codes
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ab_admin-0.3.6 lib/generators/ab_admin/install/templates/models/user_state.rb
ab_admin-0.3.5 lib/generators/ab_admin/install/templates/models/user_state.rb
ab_admin-0.3.4 lib/generators/ab_admin/install/templates/models/user_state.rb
ab_admin-0.3.3 lib/generators/ab_admin/install/templates/models/user_state.rb
ab_admin-0.3.2 lib/generators/ab_admin/install/templates/models/user_state.rb
ab_admin-0.3.1 lib/generators/ab_admin/install/templates/models/user_state.rb
ab_admin-0.3.0 lib/generators/ab_admin/install/templates/models/user_state.rb
ab_admin-0.2.3 lib/generators/ab_admin/install/templates/models/user_state.rb
ab_admin-0.2.2 lib/generators/ab_admin/install/templates/models/user_state.rb