lib/dynamic_image/engine.rb in dynamic_image-2.0.21 vs lib/dynamic_image/engine.rb in dynamic_image-2.0.22
- old
+ new
@@ -29,10 +29,10 @@
initializer "dynamic_image.extensions", before: :load_active_support do
ActiveSupport.on_load(:active_record) do
send :include, DynamicImage::BelongsTo
end
- ActionDispatch::Routing::Mapper.send :include, DynamicImage::Routing
+ ActionDispatch::Routing::Mapper.include DynamicImage::Routing
ActionDispatch::ExceptionWrapper.rescue_responses.merge!(
"DynamicImage::Errors::InvalidSignature" => :unauthorized
)
end