Skip to content

Commit

Permalink
Remove code related to moved/deleted files
Browse files Browse the repository at this point in the history
  • Loading branch information
LeticiaErrandonea committed Jul 12, 2024
1 parent 6041edb commit 1199f6f
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions vendor/engines/projects/lib/projects/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,7 @@ class Engine < Rails::Engine

config.to_prepare do
::AbilityExtensionManager.extensions << "Projects::AbilityExtension"
Facility.send :include, Projects::FacilityExtension
GlobalSearchController.send :include, Projects::GlobalSearchControllerExtension
NavTab::LinkCollection.send :include, Projects::LinkCollectionExtension
::OrderDetails::ParamUpdater.send :include, Projects::OrderDetails::ParamUpdaterExtension
Order.send :include, Projects::OrderExtension
OrderDetail.send :include, Projects::OrderDetailExtension
OrderDetailBatchUpdater.send :include, Projects::OrderDetailBatchUpdaterExtension
OrdersController.send :include, Projects::OrdersControllerExtension
Reservation.send :include, Projects::ReservationExtension

ViewHook.add_hook "reservations.account_field",
"after_account",
Expand Down Expand Up @@ -44,26 +36,6 @@ class Engine < Rails::Engine
ViewHook.add_hook "shared.order_detail_action_form",
"batch_update_above_product_column",
"projects/shared/select_facility_project"

::Reports::GeneralReportsController.reports[:project] = Projects::ReportsExtension.general_report
::Reports::InstrumentReportsController.reports[:project] = Projects::ReportsExtension.instrument_report
end

config.after_initialize do
OrderRowImporter.send :prepend, Projects::OrderRowImporterExtension
OrderRowImporter.order_import_headers.insert(-2, :project_name)
end

initializer :append_migrations do |app|
config.paths["db/migrate"].expanded.each do |expanded_path|
app.config.paths["db/migrate"] << expanded_path
end
end

initializer "model_core.factories", after: "factory_bot.set_factory_paths" do
if defined?(FactoryBot)
FactoryBot.definition_file_paths << File.expand_path("../../../spec/factories", __FILE__)
end
end

end
Expand Down

0 comments on commit 1199f6f

Please sign in to comment.