Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
```
irb(main):001:0> ActiveRecord::Base.belongs_to_required_by_default
=> true
irb(main):002:0> Rails.application.config.active_record.belongs_to_required_by_default
=> false
```
  • Loading branch information
ta1kt0me committed Dec 5, 2017
1 parent 3e03f9f commit ad0a8fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ gem 'jbuilder', '~> 2.5'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

gem 'activerecord-session_store'
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
Expand Down
9 changes: 8 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ GEM
activemodel (= 5.1.4)
activesupport (= 5.1.4)
arel (~> 8.0)
activerecord-session_store (1.1.0)
actionpack (>= 4.0, < 5.2)
activerecord (>= 4.0, < 5.2)
multi_json (~> 1.11, >= 1.11.2)
rack (>= 1.5.2, < 3)
railties (>= 4.0, < 5.2)
activesupport (5.1.4)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7)
Expand Down Expand Up @@ -178,6 +184,7 @@ PLATFORMS
ruby

DEPENDENCIES
activerecord-session_store
byebug
capybara (~> 2.13)
coffee-rails (~> 4.2)
Expand All @@ -196,4 +203,4 @@ DEPENDENCIES
web-console (>= 3.3.0)

BUNDLED WITH
1.15.4
1.16.0

0 comments on commit ad0a8fe

Please sign in to comment.