Skip to content

Commit

Permalink
fix rubocop errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zinc-glaze committed Oct 9, 2024
1 parent 53d2522 commit b73642b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions app/components/trln_argon/search/sidebar_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module TrlnArgon
module Search
class SidebarComponent < Blacklight::Search::SidebarComponent
def initialize(blacklight_config:, response:, view_config:)
super(blacklight_config: blacklight_config, response: response, view_config: view_config)
@blacklight_config = blacklight_config
@response = response
@group_component_class = view_config.facet_group_component || Blacklight::Response::FacetGroupComponent
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/blacklight_configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module Blacklight
class Configuration
extend ActiveSupport::Autoload

eager_autoload do
autoload :HomeFacetField
autoload :ShowSubHeaderField
Expand Down
10 changes: 5 additions & 5 deletions lib/generators/trln_argon/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ def inject_javascript_include
say_status('info', '==============================', :magenta)
say_status('info', 'Injecting TRLN Argon JS assets', :magenta)
say_status('info', '==============================', :magenta)
if File.exist?('app/assets/javascripts/application.js')
return if IO.read('app/assets/javascripts/application.js').include?('trln_argon')
insert_into_file 'app/assets/javascripts/application.js', after: '//= require blacklight/blacklight' do
"\n//= require trln_argon/trln_argon\n"
end
return unless File.exist?('app/assets/javascripts/application.js')
return if IO.read('app/assets/javascripts/application.js').include?('trln_argon')

insert_into_file 'app/assets/javascripts/application.js', after: '//= require blacklight/blacklight' do
"\n//= require trln_argon/trln_argon\n"
end
end

Expand Down

0 comments on commit b73642b

Please sign in to comment.