Sha256: 15725ed470d1336f0dbf4b912813d38e725a1de038193138e64a074a2936e3b6

Contents?: true

Size: 111 Bytes

Versions: 4

Compression:

Stored size: 111 Bytes

Contents

class User < ActiveRecord::Base
  extend RailsAttrEnum

  attr_enum :role, :admin, :editor, :author, :user
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_attr_enum-0.2.0 test/dummy/app/models/user.rb
rails_attr_enum-0.1.1 test/dummy/app/models/user.rb
rails_attr_enum-0.1.0 test/dummy/app/models/user.rb
rails_attr_enum-0.0.6 test/dummy/app/models/user.rb