README.markdown in resque-cleaner-0.2.8 vs README.markdown in resque-cleaner-0.2.9

- old
+ new

@@ -1,11 +1,10 @@ -ResqueCleaner [ ![Travis-CI](https://secure.travis-ci.org/ono/resque-cleaner.png?branch=master "Travis CI") ](http://travis-ci.org/ono/resque-cleaner "Travis CI for resque-cleaner") -============== +ResqueCleaner [![Travis-CI](https://secure.travis-ci.org/ono/resque-cleaner.png?branch=master)](http://travis-ci.org/ono/resque-cleaner) [![Dependency Status](https://gemnasium.com/ono/resque-cleaner.png)](https://gemnasium.com/ono/resque-cleaner) +============= [github.com/ono/resque-cleaner](https://github.com/ono/resque-cleaner) - Description ----------- ResqueCleaner is a [Resque](https://github.com/defunkt/resque) plugin which aims to help you to clean up failed jobs on Resque by: @@ -28,13 +27,35 @@ ---------------------- ![Screen 1](https://github.com/ono/resque-cleaner/raw/master/misc/resque-cleaner-main.png) ![Screen 2](https://github.com/ono/resque-cleaner/raw/master/misc/resque-cleaner-list.png) -You have to load ResqueCleaner to enable the Cleaner tab. +Configuration +------------- + +At first, you have to load ResqueCleaner to enable the Cleaner tab. Here is +an example step. + +1. Create a configuration file for resque-web +<br/>```touch [app_dir]/config/resque-web.rb``` + +2. Add the following line into the file +<br/>```require 'resque-cleaner'``` + +3. Then pass the file when you start resque-web +<br/>```% resque-web [app_dir]/config/resque-web.rb``` + +You can also configure [limiter](https://github.com/ono/resque-cleaner#limiter) +in the file. + +e.g. + ```ruby - require 'resque-cleaner' +require 'resque-cleaner' +module Resque::Plugins + ResqueCleaner::Limiter.default_maximum = 10_000 +end ``` Console -------