test/dummy/app/models/user.rb in rails_attr_enum-0.0.5 vs test/dummy/app/models/user.rb in rails_attr_enum-0.0.6
- old
+ new
@@ -1,3 +1,6 @@
class User < ActiveRecord::Base
+ extend RailsAttrEnum
+
+ attr_enum :role, :admin, :editor, :author, :user
end