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

Commit

Permalink
Consolidate logic
Browse files Browse the repository at this point in the history
  • Loading branch information
joelvh committed Nov 16, 2017
1 parent 2e989ae commit 01cd1b4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/controllers/casino/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@ class CASino::ApplicationController < ::ApplicationController

layout 'application'

rescue_from ActionController::UnknownFormat do
head :not_acceptable
end

unless Rails.env.development?
rescue_from ActionView::MissingTemplate, with: :missing_template
rescue_from ActionController::UnknownFormat, with: :missing_template
end

def cookies
Expand Down

0 comments on commit 01cd1b4

Please sign in to comment.