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:
parent
421b60fb1f
commit
1cd3d631b9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue