Numeric context of enum in Views

I think you are looking for attributes_before_type_cast. See http://api.rubyonrails.org/classes/ActiveRecord/Base.html#M001057

Sandeep Gudibanda wrote: