Skip to content

Commit

Permalink
Merge pull request #6123 from samvera/pour-gas-into-generators
Browse files Browse the repository at this point in the history
Let Rails CLI that Hyrax is still an Engine
  • Loading branch information
summer-cook authored Jul 26, 2023
2 parents 37dcea9 + 9aa0779 commit 21a8009
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions bin/rails
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

# This command will automatically be run when you run "rails" with Rails gems
# installed from the root of your application.

ENGINE_ROOT = File.expand_path("..", __dir__)
ENGINE_PATH = File.expand_path("../lib/hyrax/engine", __dir__)
# APP_PATH = File.expand_path("../.internal_test_app/config/application", __dir__)

# Set up gems listed in the Gemfile.
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"])

require "rails/all"
require "rails/engine/commands"
2 changes: 2 additions & 0 deletions lib/hyrax/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class Engine < ::Rails::Engine
require 'qa'
require 'tinymce-rails'
require 'valkyrie'
require 'cancancan'
require 'blacklight'

require 'hydra/derivatives'
require 'hyrax/active_fedora_dummy_model'
Expand Down

0 comments on commit 21a8009

Please sign in to comment.