rails-api/rails-api — pull request #111 by bmorton (2013-12-18 03:29:14+00:00)
Title: AbstractController::Rendering must be included earlier for Rails 4.1.0.beta1

For Rails 3.2 and 4.0, this is basically a no-op. Due to changes in Rails 4.1 with the abstraction of action_view and the rendering changes, we have to explicitly require/include these extra things. Additionally, AbstractController::Rendering has a dependency on action_view.

This fixes the 5 tests failing against edge Rails right now with the NoMethodError exception.

Should we do anything to fence this off for Rails 4.1? The changes were backwards compatible and the suite passed on both 3.2 and 4.0 with this change, so it felt good to leave the 4.1 conditional checks out of this.