You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
undefined method `[]' for nil:NilClass
Extracted source (around line #184):
#182
#183 if is_enum_attribute?(record, attr_name)
*184 value = record.class.defined_enums[attr_name][value]
#185 end
#186
#187 value
...
I think you need to cast the attr_name to string something like this attr_name.to_s
Here's what I got when validation fails:
I think you need to cast the
attr_name
to string something like thisattr_name.to_s
validates_overlap/lib/validates_overlap/overlap_validator.rb
Line 185 in 4c2c837
The text was updated successfully, but these errors were encountered: