Sha256: 374091b431ee8e6493c7a23551af6258bb19c94faa41489c504eb5f334c66a0c

Contents?: true

Size: 348 Bytes

Versions: 29

Compression:

Stored size: 348 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  # Overrides CanCan so that attributes are not automatically assigned
  # to loaded resources
  class ControllerResource < CanCan::ControllerResource
    private

    # Override resource_params to make this a nop. Hyrax uses actors to assign attributes
    def resource_params
      {}
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
hyrax-5.1.0.pre.beta1 lib/hyrax/controller_resource.rb
hyrax-5.0.4 lib/hyrax/controller_resource.rb
hyrax-5.0.3 lib/hyrax/controller_resource.rb
hyrax-5.0.2 lib/hyrax/controller_resource.rb
hyrax-5.0.1 lib/hyrax/controller_resource.rb
hyrax-5.0.0 lib/hyrax/controller_resource.rb
hyrax-5.0.0.rc3 lib/hyrax/controller_resource.rb
hyrax-5.0.0.rc2 lib/hyrax/controller_resource.rb
hyrax-5.0.0.rc1 lib/hyrax/controller_resource.rb
hyrax-3.6.0 lib/hyrax/controller_resource.rb
hyrax-4.0.0 lib/hyrax/controller_resource.rb
hyrax-4.0.0.rc3 lib/hyrax/controller_resource.rb
hyrax-4.0.0.rc2 lib/hyrax/controller_resource.rb
hyrax-4.0.0.rc1 lib/hyrax/controller_resource.rb
hyrax-3.5.0 lib/hyrax/controller_resource.rb
hyrax-4.0.0.beta2 lib/hyrax/controller_resource.rb
hyrax-3.4.2 lib/hyrax/controller_resource.rb
hyrax-4.0.0.beta1 lib/hyrax/controller_resource.rb
hyrax-3.4.1 lib/hyrax/controller_resource.rb
hyrax-3.4.0 lib/hyrax/controller_resource.rb