require_relative 'boot'

require 'rails/all'

# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)

module SampleApp
  class Application < Rails::Application
    # Initialize configuration defaults for originally generated Rails version.
    config.load_defaults 5.1

    # Settings in config/environments/* take precedence over those specified here.
    # Application configuration should go into files in config/initializers
    # -- all .rb files in that directory are automatically loaded.

    # Don't force HTTPS on all environments.
    config.force_ssl = false
    # config.ssl_options = { redirect: false, secure_cookies: false, hsts: false }

    # Include authenticity token in remote (JavaScript AJAX) forms.
    config.action_view.embed_authenticity_token_in_remote_forms = true
  end
end
