我的事件定義是這樣的: event :share, after: :inc_in_path_share do
transitions from: :bucketed, to: :shared
error do |e|
inc_share(message, tags)
end
end
,我把它叫做my_instance.share(mes
我試圖在參數中傳入,甚至使用aasm紅寶石寶石和導軌。但是,每當我嘗試按照文檔示例進行操作時,我都會收到Wrong number of arguments. Expected 0, got 2.。我究竟做錯了什麼? 代碼如下: class Foo < ActiveRecord::Base
include AASM
aasm column: :status do
st
超級用戶: class Job
include AASM
aasm do
state :sleeping, :initial => true
state :running, :cleaning
event :run do
transitions :from => :sleeping, :to => :running
end