Module: Unmagic::Enum::ActiveRecordExtensions::InstanceMethods

Defined in:
lib/unmagic/enum/active_record_extensions.rb

Instance Method Summary collapse

Instance Method Details

#to_type_for_databaseObject

Support for ActiveRecord type casting in SQL queries This allows Enum instances to be used directly in where clauses



87
88
89
# File 'lib/unmagic/enum/active_record_extensions.rb', line 87

def to_type_for_database
  @value
end