Sha256: 0c141ff9fa94b3ca187ccf509028c559e39bb7dd2f668af39113f8bc149bee86
Contents?: true
Size: 439 Bytes
Versions: 1
Compression:
Stored size: 439 Bytes
Contents
module ActiveRecord # :nodoc: all class PredicateBuilder def build_from_hash_with_classy_enum(attributes, default_table) # Convert classy enum values to strings attributes.map do |column, value| attributes[column] = value.to_s if value.is_a? ClassyEnum::Base end build_from_hash_without_classy_enum(attributes, default_table) end alias_method_chain :build_from_hash, :classy_enum end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
classy_enum-1.0.0 | lib/classy_enum/active_record.rb |