plataformatec/has_scope — pull request #31 by kreeger (2012-11-24 21:55:24+00:00)
Title: Updating ActiveSupport patching to use #on_load; moved gem dependencies to gemspec.

Per this [Rails API Google Groups thread][thread], I'm submitting a pull request to monkey-patch ActiveSupport instead of ActionController. This allows gems like `has_scope` to work with the `rails-api` project without any additional modification or patching.

In order to run the test suite successfully across several versions of Ruby (and to specify runtime vs development dependencies), I moved the gem dependencies from the `Gemfile` into the `gemspec` using the RubyGems API for doing so. If you'd rather I just push the ActiveSupport alteration by itself, let me know; I'd be more than happy to do so.

I didn't bump the version file, either; I figured I'd leave that up to the fearless upstream repository owners!

[thread]: https://groups.google.com/d/msg/rails-api-core/nE_1fIMebh4/bpeQsTcBqqwJ