* Rubocop fixes * Rubocop fixes * Fixed rubocop violation * Fixed policies rubocop violations * More rubocop fixes
14 lines
578 B
Ruby
14 lines
578 B
Ruby
Rails.application.config.to_prepare do
|
|
# Explicitly requiring lib/liquid to make sure that our patches are loaded
|
|
# before liquid tags are loaded
|
|
Rails.root.glob("lib/liquid/*.rb").each do |filename|
|
|
require_dependency filename
|
|
end
|
|
|
|
# Our custom Liquid tags are registered to Liquid::Template at the bottom of
|
|
# each files. Each Liquid tags will need to be loaded/required before the main
|
|
# Liquid gem is evoked, hence the need to pre-require them in order
|
|
Rails.root.glob("app/liquid_tags/*.rb").each do |filename|
|
|
require_dependency filename
|
|
end
|
|
end
|