app/controllers/hydra/assets_controller.rb in hydra-head-4.0.3 vs app/controllers/hydra/assets_controller.rb in hydra-head-4.1.0
- old
+ new
@@ -1,3 +1,12 @@
+require 'deprecation'
class Hydra::AssetsController < ApplicationController
- include Hydra::Assets
+ extend Deprecation
+
+ self.deprecation_horizon = 'hydra-head 5.x'
+ include Hydra::Controller::AssetsControllerBehavior
+
+ def initialize *args
+ Deprecation.warn(Hydra::AssetsController, "Hydra::AssetsController is deprecated and will be removed from #{self.class.deprecation_horizon}")
+ super
+ end
end