Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Fixed the railtie so that it injects the instance method into Applica…
Browse files Browse the repository at this point in the history
…tionController so that it won't be lost across requests in development mode.
  • Loading branch information
Cody Robbins committed May 24, 2011
1 parent 51711e9 commit 0442750
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/cody_robbins/http_error/railtie.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
require('rails')

module CodyRobbins
module HttpError
class Railtie < Rails::Railtie
initializer('cody_robbins.http_error') do
ActiveSupport.on_load(:action_controller) do
ApplicationController.send(:include, InstanceMethods)
include(InstanceMethods)
end
end
end
Expand Down

0 comments on commit 0442750

Please sign in to comment.