1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00

use class method instead of instance method in scope example

This commit is contained in:
Ryan Moser 2014-04-30 20:17:15 -07:00
parent 421b60fb1f
commit 1cd3d631b9

View file

@ -308,7 +308,7 @@ class Job < ActiveRecord::Base
state :cleaning
end
def sleeping
def self.sleeping
"This method name is in already use"
end
end