Skip to content

Commit

Permalink
Update railtie.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
malomalo committed Dec 18, 2017
1 parent b7faefe commit 6b12660
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/mls/railtie.rb
@@ -1,14 +1,13 @@
# See notes from 'active_record/railtie'
require "action_controller/railtie"
require "active_record/railtie"

class MLS::Railtie < Rails::Railtie

config.mls = ActiveSupport::OrderedOptions.new

config.action_dispatch.rescue_responses.merge!(
"Sunstone::Exception::NotFound" => :not_found,
"Sunstone::Exception::Unauthorized" => :conflict,
"Sunstone::Exception::Unauthorized" => :unauthorized,
"Sunstone::Exception::Gone" => :gone
)

Expand All @@ -30,4 +29,4 @@ class MLS::Railtie < Rails::Railtie

end

end
end

0 comments on commit 6b12660

Please sign in to comment.