Rails 4 support

Hello again :)

Last pull request in series of Rails 4 update.

Everything is pretty much the same as for responders and has_scope.

Commets are always greatly appreciated.

Thanks.