Skip to content

Commit

Permalink
Merge pull request #2436 from bitzesty/fix-autoload-issue
Browse files Browse the repository at this point in the history
Move forms folder outside to fix autoload issue
  • Loading branch information
saenom authored Jul 21, 2023
2 parents 0efd729 + 8648fe9 commit a9c01bf
Show file tree
Hide file tree
Showing 265 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/models/form_answer.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
require_relative '../forms/award_years/v2018/qae_forms'
require_relative '../forms/award_years/v2019/qae_forms'
require_relative '../forms/award_years/v2020/qae_forms'
require_relative '../forms/award_years/v2021/qae_forms'
require_relative '../forms/award_years/v2022/qae_forms'
require_relative '../forms/award_years/v2023/qae_forms'
require_relative '../forms/award_years/v2024/qae_forms'
require_relative '../../forms/award_years/v2018/qae_forms'
require_relative '../../forms/award_years/v2019/qae_forms'
require_relative '../../forms/award_years/v2020/qae_forms'
require_relative '../../forms/award_years/v2021/qae_forms'
require_relative '../../forms/award_years/v2022/qae_forms'
require_relative '../../forms/award_years/v2023/qae_forms'
require_relative '../../forms/award_years/v2024/qae_forms'

class FormAnswer < ApplicationRecord
include Statesman::Adapters::ActiveRecordQueries
Expand Down
1 change: 1 addition & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class Application < Rails::Application
config.eager_load = false

config.autoload_once_paths << "#{root}/lib"
config.autoload_once_paths << "#{root}/forms"
config.autoload_paths << "#{root}/lib"
config.eager_load_paths << "#{root}/lib"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a9c01bf

Please sign in to comment.