Permalink
Browse files

Resque after init

  • Loading branch information...
1 parent 7088665 commit 069cb5118f85341dfd240df1d51a228f9165fdf2 @pyromaniac pyromaniac committed May 24, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/nano_api/engine.rb
View
@@ -7,8 +7,10 @@ class Engine < Rails::Engine
config.autoload_paths << root.join('lib')
- config.action_dispatch.rescue_responses.merge!(
- "RestClient::ResourceNotFound" => :not_found
- )
+ config.after_initialize do
+ Rails.application.config.action_dispatch.rescue_responses.merge!(
+ "RestClient::ResourceNotFound" => :not_found
+ )
+ end
end
end

0 comments on commit 069cb51

Please sign in to comment.