mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
fix scope controller example in the README
This commit is contained in:
parent
bf389aefbf
commit
b7975755f4
1 changed files with 3 additions and 3 deletions
|
@ -317,10 +317,10 @@ end
|
|||
```ruby
|
||||
class JobsController < ApplicationController
|
||||
def index
|
||||
@running_jobs = jobs.running
|
||||
@recent_cleaning_jobs = jobs.cleaning.where('created_at >= ?', 3.days.ago)
|
||||
@running_jobs = Job.running
|
||||
@recent_cleaning_jobs = Job.cleaning.where('created_at >= ?', 3.days.ago)
|
||||
|
||||
# @sleeping_jobs = jobs.sleeping #=> "This method name is in already use"
|
||||
# @sleeping_jobs = Job.sleeping #=> "This method name is in already use"
|
||||
end
|
||||
end
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue