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
When you include the Avram::DatabaseValidations mixin in to any Avram::Operation, there's no record methods, so this line falls back to thinking record is Crystal's macro record.
When you include the
Avram::DatabaseValidations
mixin in to anyAvram::Operation
, there's norecord
methods, so this line falls back to thinkingrecord
is Crystal's macro record.avram/src/avram/database_validations.cr
Line 107 in 9f727d2
Then you'll get a "wrong number of arguments for macro record" error. This is misleading though.
We can either rename
record
in the SaveOperation (which would be a breaking change)avram/src/avram/save_operation.cr
Line 38 in 9f727d2
Or we can include an empty record method in the operation
The text was updated successfully, but these errors were encountered: