tute/merit — pull request #117 by billychan (2013-12-07 17:07:55+00:00)
Title: Allow disable automatically added after_filter

Hi, @tute,

Sometimes I found it needed to disable the default after_filter in controller and add it manually instead. So I added a config option to allow disabling it when needed.

Use case 1:

The app is a heavy read app so I don't want to Merit to check unnecessary actions like `show` and `index`. Instead, I can define the after_filter by myself for limited actions.

```ruby
after_filter :merit_check_and_process, only: [:create, :update]
```

Use case 2:

If using JSON or UJS to response, developer may want to output the new user points right in this request. If all Merit logic happens after render, there is no way to show new points. So it can be used like this(without any after_filter)

```ruby
if @comment.save
merit_check_and_process
```

Then the points on JSON or js template will be the new one.

Use case 3:

I'm still not sure, I would like to output points delta withing the request in the future. I read your idea on #97, but the query looks complex. I read the source and found it should be possible to fetch delta after Judge, and return it during request, though not sure yet. But separating after_filter sounds the first step. Would like to hear your advise.

Thanks for your consideration!