• R
    Fix the enums writer methods · 7aebcb67
    Robin Dupret 提交于
    Previously, the writer methods would simply check whether the passed
    argument was the symbol representing the integer value of an enum field.
    Therefore, it was not possible to specify the numeric value itself but
    the dynamically defined scopes generate where clauses relying on this
    kind of values so a chained call to a method like `find_or_initialize_by`
    would trigger an `ArgumentError`.
    
    Reference #13530
    7aebcb67
schema.rb 21.6 KB