How would I be able to use an event called ship
in AASM if I also have a Rails model with that name?
event :ship do
transitions :from => :quoted, :to => :shipped
end
class Ship < ApplicationRecord
end
Whenever I call the Rails method .ship
AASM gets triggered and throws an error.
Is renaming my Ship
model to Vessel
the only way to solve this problem?