Skip to content

Commit

Permalink
generate valkyrie Monograph into the test application last
Browse files Browse the repository at this point in the history
Ensures `GenericWork` remains the "primary concern" for Hyrax, by keeping it at
the top of the registry.

We should really consider a better approach for determining the "primary
concern", and also reducing the amount code that depends on this dubious
concept.
  • Loading branch information
tom johnson committed May 12, 2020
1 parent 2221533 commit 700c160
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/test_app_templates/lib/generators/test_app_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ def browse_everything_install
generate "browse_everything:install --skip-assets"
end

def create_work
generate 'hyrax:work_resource Monograph'
end

def create_generic_work
generate 'hyrax:work GenericWork'
end
Expand All @@ -38,6 +34,10 @@ def create_nested_work
EOS
end

def create_work
generate 'hyrax:work_resource Monograph'
end

def create_time_span
create_file 'app/models/time_span.rb' do
<<-EOS.strip_heredoc
Expand Down

0 comments on commit 700c160

Please sign in to comment.