Sha256: 86248fc06111b4f6af04dd8b7cc6b970345914a595e3f0a5feebcdaf9f064491

Contents?: true

Size: 1.01 KB

Versions: 26

Compression:

Stored size: 1.01 KB

Contents

# Include this module into any of your Controller classes to add Hydra functionality
#
# The primary function of this module is to mix in a number of other Hydra Modules, including 
#   Hydra::AccessControlsEnforcement
#
# @example 
#  class CustomHydraController < ApplicationController  
#    include Hydra::Controller
#  end
#
# will move to lib/hydra/controller/controller_behavior in release 5.x
module Hydra::Controller
  autoload :AssetsControllerBehavior, 'hydra/controller/assets_controller_behavior'
  autoload :ControllerBehavior, 'hydra/controller/controller_behavior'
  autoload :RepositoryControllerBehavior, 'hydra/controller/repository_controller_behavior'
  autoload :UploadBehavior, 'hydra/controller/upload_behavior'
  autoload :FileAssetsBehavior, 'hydra/controller/file_assets_behavior'

  extend ActiveSupport::Concern
  
  included do
    ActiveSupport::Deprecation.warn("Hydra::Controller has been renamed Hydra::Controller::ControllerBehavior.")
    include Hydra::Controller::ControllerBehavior
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
hydra-core-5.4.1 lib/hydra/controller.rb
hydra-core-5.4.0 lib/hydra/controller.rb
hydra-core-6.0.0.pre3 lib/hydra/controller.rb
hydra-core-6.0.0.pre2 lib/hydra/controller.rb
hydra-core-6.0.0.pre1 lib/hydra/controller.rb
hydra-core-5.4.0.pre1 lib/hydra/controller.rb
hydra-core-5.3.0 lib/hydra/controller.rb
hydra-core-5.2.0 lib/hydra/controller.rb
hydra-core-5.1.0 lib/hydra/controller.rb
hydra-core-5.0.1 lib/hydra/controller.rb
hydra-core-5.0.0 lib/hydra/controller.rb
hydra-core-5.0.0.rc1 lib/hydra/controller.rb
hydra-core-5.0.0.pre15 lib/hydra/controller.rb
hydra-core-5.0.0.pre14 lib/hydra/controller.rb
hydra-core-5.0.0.pre13 lib/hydra/controller.rb
hydra-core-5.0.0.pre12 lib/hydra/controller.rb
hydra-core-5.0.0.pre11 lib/hydra/controller.rb
hydra-core-5.0.0.pre10 lib/hydra/controller.rb
hydra-core-5.0.0.pre9 lib/hydra/controller.rb
hydra-core-5.0.0.pre8 lib/hydra/controller.rb