diff --git a/.rubocop.yml b/.rubocop.yml index 8ff41800b..628d2b42b 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -41,6 +41,7 @@ Metrics/BlockLength: - 'lib/tasks/*.rake' - 'spec/**/*.rb' - 'tasks/benchmark.rake' + - 'config/application.rb' Style/AsciiComments: Enabled: false diff --git a/app/controllers/hyrax/dashboard/collections_controller_decorator.rb b/app/controllers/hyrax/dashboard/collections_controller_decorator.rb index 78bf426e1..e7dc0e7f7 100644 --- a/app/controllers/hyrax/dashboard/collections_controller_decorator.rb +++ b/app/controllers/hyrax/dashboard/collections_controller_decorator.rb @@ -145,18 +145,6 @@ def create_logo_info(uploaded_file_id, alttext, linkurl) logo_info end - def collection_params - if Hyrax.config.collection_class < ActiveFedora::Base - @participants = extract_old_style_permission_attributes(params[:collection]) - form_class.model_attributes(params[:collection]) - else - params.permit(collection: {})[:collection] - .merge(params.permit(:collection_type_gid) - .with_defaults(collection_type_gid: default_collection_type_gid)) - .merge(member_of_collection_ids: Array(params[:parent_id])) - end - end - # rubocop:disable Metrics/MethodLength def process_uploaded_thumbnail(uploaded_file) dir_name = UploadedCollectionThumbnailPathService.upload_dir(@collection)