Skip to content

Commit

Permalink
Improve suggested structure in Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
MaksimAbramchuk committed Jan 23, 2016
1 parent 152c9d8 commit b62bee7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,15 @@ First, define a superworker in a file that's included during the initialization

```ruby
# config/initializers/superworkers.rb
Dir['./app/superworkers/*'].each { |f| require f }

# app/superworkers/my_superworker.rb
Superworker.define(:MySuperworker, :user_id, :comment_id) do
Worker1 :user_id, :comment_id
Worker2 :comment_id
end

# app/superworkers/my_other_superworker.rb
Superworker.define(:MyOtherSuperworker, :comment_id) do
Worker2 :comment_id
Worker3 :comment_id
Expand Down

0 comments on commit b62bee7

Please sign in to comment.