ぼざクリ タグ広場 https://hub.nizika.monster
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

71 lines
2.5 KiB

  1. require "active_support/core_ext/integer/time"
  2. Rails.application.configure do
  3. # Settings specified here will take precedence over those in config/application.rb.
  4. # Make code changes take effect immediately without server restart.
  5. config.enable_reloading = true
  6. # Do not eager load code on boot.
  7. config.eager_load = false
  8. # Show full error reports.
  9. config.consider_all_requests_local = true
  10. # Enable server timing.
  11. config.server_timing = true
  12. # Enable/disable Action Controller caching. By default Action Controller caching is disabled.
  13. # Run rails dev:cache to toggle Action Controller caching.
  14. if Rails.root.join("tmp/caching-dev.txt").exist?
  15. config.public_file_server.headers = { "cache-control" => "public, max-age=#{2.days.to_i}" }
  16. else
  17. config.action_controller.perform_caching = false
  18. end
  19. # Change to :null_store to avoid any caching.
  20. config.cache_store = :memory_store
  21. # Store uploaded files on the local file system (see config/storage.yml for options).
  22. config.active_storage.service = :local
  23. # Don't care if the mailer can't send.
  24. config.action_mailer.raise_delivery_errors = false
  25. # Make template changes take effect immediately.
  26. config.action_mailer.perform_caching = false
  27. # Set localhost to be used by links generated in mailer templates.
  28. config.action_mailer.default_url_options = { host: "localhost", port: 3000 }
  29. # Print deprecation notices to the Rails logger.
  30. config.active_support.deprecation = :log
  31. # Raise an error on page load if there are pending migrations.
  32. config.active_record.migration_error = :page_load
  33. # Highlight code that triggered database queries in logs.
  34. config.active_record.verbose_query_logs = true
  35. # Append comments with runtime information tags to SQL queries in logs.
  36. config.active_record.query_log_tags_enabled = true
  37. # Highlight code that enqueued background job in logs.
  38. config.active_job.verbose_enqueue_logs = true
  39. # Raises error for missing translations.
  40. # config.i18n.raise_on_missing_translations = true
  41. # Annotate rendered view with file names.
  42. config.action_view.annotate_rendered_view_with_filenames = true
  43. # Uncomment if you wish to allow Action Cable access from any origin.
  44. # config.action_cable.disable_request_forgery_protection = true
  45. # Raise error when a before_action's only/except options reference missing actions.
  46. config.action_controller.raise_on_missing_callback_actions = true
  47. # Apply autocorrection by RuboCop to files generated by `bin/rails generate`.
  48. # config.generators.apply_rubocop_autocorrect_after_generate!
  49. end