Skip to content

Instantly share code, notes, and snippets.

@amedrz
Created January 17, 2013 02:00
Show Gist options
  • Save amedrz/4552861 to your computer and use it in GitHub Desktop.
Save amedrz/4552861 to your computer and use it in GitHub Desktop.
MongoMapper::Railtie.class_eval do
config.action_dispatch.rescue_responses.merge!(
'MongoMapper::DocumentNotFound' => :not_found
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment