Skip to content

Commit

Permalink
Make Controller Helpers autoloadable
Browse files Browse the repository at this point in the history
There's no real good reason to keep these files in lib and require them
on app startup. Let's put them in app/ and let Zeitwerk handle their
loading.
  • Loading branch information
mamhoff committed Jan 9, 2025
1 parent 9aa24a5 commit ea50bb9
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# frozen_string_literal: true

require 'spree/core/controller_helpers/pricing'

module Spree
module Core
module ControllerHelpers
Expand Down
8 changes: 0 additions & 8 deletions core/lib/spree/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,6 @@ class GatewayError < RuntimeError; end
require 'spree/core/importer'
require 'spree/core/permalinks'
require 'spree/core/product_duplicator'
require 'spree/core/controller_helpers/auth'
require 'spree/core/controller_helpers/common'
require 'spree/core/controller_helpers/order'
require 'spree/core/controller_helpers/payment_parameters'
require 'spree/core/controller_helpers/pricing'
require 'spree/core/controller_helpers/search'
require 'spree/core/controller_helpers/store'
require 'spree/core/controller_helpers/strong_parameters'
require 'spree/core/role_configuration'
require 'spree/core/state_machines'
require 'spree/core/stock_configuration'
Expand Down

0 comments on commit ea50bb9

Please sign in to comment.