Skip to content

Commit

Permalink
Move copy of template below injection of mixin it references
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcolvar authored and tamsin johnson committed Aug 23, 2022
1 parent 3bf4b27 commit bf5df6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/generators/hyrax/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ def inject_routes
end
end

def catalog_controller
copy_file "catalog_controller.rb", "app/controllers/catalog_controller.rb"
end

# Add behaviors to the SolrDocument model
def inject_solr_document_behavior
file_path = 'app/models/solr_document.rb'
Expand Down Expand Up @@ -126,6 +122,10 @@ def inject_hyrax_application_controller_behavior
end
end

def catalog_controller
copy_file "catalog_controller.rb", "app/controllers/catalog_controller.rb"
end

def copy_helper
copy_file 'hyrax_helper.rb', 'app/helpers/hyrax_helper.rb'
end
Expand Down

0 comments on commit bf5df6f

Please sign in to comment.