Skip to content

Commit

Permalink
Active Record
Browse files Browse the repository at this point in the history
  • Loading branch information
orien committed Jan 23, 2025
1 parent 69f7024 commit d4a9ba2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ class Application < Rails::Application
# the new default of `true` breaks redirecting to shields.io.
config.action_controller.raise_on_open_redirects = false

config.active_record.automatic_scope_inversing = false
config.active_record.verify_foreign_keys_for_fixtures = false
config.active_record.partial_inserts = true

# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
config.force_ssl = (ENV["FORCE_SSL"] == "1")
config.ssl_options = {redirect: {exclude: ->(request) { request.path.match?(/^\/ping(\/|$)/) }}}
Expand Down

0 comments on commit d4a9ba2

Please sign in to comment.