Sha256: 20a412a8a3e777ff80e78a852409c24f8c049e18f3249a41720b2a49a2b9f798

Contents?: true

Size: 946 Bytes

Versions: 9

Compression:

Stored size: 946 Bytes

Contents

# frozen_string_literal: true

# Code in this file is copied from `require "rails/all"`

RAILS_ALL = %w[active_record/railtie
               action_controller/railtie
               action_view/railtie
               action_mailer/railtie
               active_job/railtie
               action_cable/engine
               rails/test_unit/railtie
               sprockets/railtie].freeze

# Yext is not using these elements of Rails yet.  Remove them.
RAILS_USED = RAILS_ALL - %w[active_record/railtie
                            action_view/railtie
                            action_mailer/railtie
                            active_job/railtie
                            action_cable/engine
                            rails/test_unit/railtie
                            sprockets/railtie].freeze

RAILS_USED.each do |railtie|
  begin
    require railtie
  rescue LoadError => e
    # :nocov:
    Rails.logger.error e
    # :nocov:
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
yext-api-0.1.11 lib/yext/include_rails.rb
yext-api-0.1.10 lib/yext/include_rails.rb
yext-api-0.1.9 lib/yext/include_rails.rb
yext-api-0.1.8 lib/yext/include_rails.rb
yext-api-0.1.7 lib/yext/include_rails.rb
yext-api-0.1.5 lib/yext/include_rails.rb
yext-api-0.1.4 lib/yext/include_rails.rb
yext-api-0.1.3 lib/yext/include_rails.rb
yext-api-0.1.1 lib/yext/include_rails.rb