require 'enumlogic' ActiveRecord::Base.extend(Enumlogic)