1
0
Fork 0
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:
Thorsten Böttger 2014-05-03 12:24:30 +02:00
parent bf389aefbf
commit b7975755f4

View file

@ -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
```