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
Unfortunately the stack trace is useless as it leads to method_missing in active_model/attribute_methods.rb
There's two surprising things happening here:
Somehow the validation inside promotion.rb ends up calling .attached? on Attachment which is just a regular ActiveRecord model. It should be calling it on the image instead.
Removing that validation from promotion.rb resolves the issue.
Any idea what could be going on here?
The text was updated successfully, but these errors were encountered:
Running the following code returns an error:
Unfortunately the stack trace is useless as it leads to
method_missing
inactive_model/attribute_methods.rb
There's two surprising things happening here:
promotion.rb
ends up calling.attached?
onAttachment
which is just a regular ActiveRecord model. It should be calling it on theimage
instead.promotion.rb
resolves the issue.Any idea what could be going on here?
The text was updated successfully, but these errors were encountered: