Skip to content

Commit

Permalink
[CONTROLLERS] Rails 4.2 metal controllers need a different stack
Browse files Browse the repository at this point in the history
  • Loading branch information
hosh committed Feb 4, 2015
1 parent 6944719 commit c6eb621
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/intermodal/controllers/api_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
module Intermodal
class APIController < ActionController::Metal

include AbstractController::Rendering
include ActionController::Rendering
include ActionController::Renderers
include ActionController::RackDelegation
Expand All @@ -20,11 +21,6 @@ class APIController < ActionController::Metal

self.responder = Intermodal::ResourceResponder

# Major hax
def render_to_body(options)
_handle_render_options(options)
end

ActiveSupport.run_load_hooks(:intermodal_api_controller, self)
end
end

0 comments on commit c6eb621

Please sign in to comment.