application.rb 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. require_relative 'boot'
  2. require "rails"
  3. # Pick the frameworks you want:
  4. require "active_model/railtie"
  5. require "active_job/railtie"
  6. require "active_record/railtie"
  7. require "active_storage/engine"
  8. require "action_controller/railtie"
  9. require "action_mailer/railtie"
  10. require "action_view/railtie"
  11. require "action_cable/engine"
  12. # require "sprockets/railtie"
  13. require "rails/test_unit/railtie"
  14. # Require the gems listed in Gemfile, including any gems
  15. # you've limited to :test, :development, or :production.
  16. Bundler.require(*Rails.groups)
  17. module FuelTank
  18. class Application < Rails::Application
  19. # Initialize configuration defaults for originally generated Rails version.
  20. config.load_defaults 5.2
  21. # Settings in config/environments/* take precedence over those specified here.
  22. # Application configuration can go into files in config/initializers
  23. # -- all .rb files in that directory are automatically loaded after loading
  24. # the framework and any gems in your application.
  25. # Only loads a smaller set of middleware suitable for API only apps.
  26. # Middleware like session, flash, cookies can be added back manually.
  27. # Skip views, helpers and assets when generating a new resource.
  28. config.api_only = true
  29. end
  30. end