Skip to content

Commit

Permalink
Rubocop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Sep 8, 2017
1 parent b139651 commit 1150ea9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/services/riiif/option_decoder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@ def decode_size(size)
raise InvalidAttributeError, "Invalid size: #{size}"
end
end
# rubocop:enable Metrics/PerceivedComplexity
# rubocop:enable Metrics/PerceivedComplexity
end
end
4 changes: 1 addition & 3 deletions lib/riiif/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ class Engine < ::Rails::Engine
# How long to cache the tiles for.
config.cache_duration_in_days = 3

config.action_dispatch.rescue_responses.merge!(
'Riiif::ImageNotFoundError' => :not_found
)
config.action_dispatch.rescue_responses['Riiif::ImageNotFoundError'] = :not_found

# Set to true to use kdu for jp2000 source images
config.kakadu_enabled = false
Expand Down

0 comments on commit 1150ea9

Please sign in to comment.