File tree 3 files changed +7
-2
lines changed
spec/dummy/config/initializers
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
spec . add_dependency 'jsonapi-parser' , '~> 0.1.0'
19
19
20
20
spec . add_development_dependency 'rails' , '~> 5.0'
21
- spec . add_development_dependency 'sqlite3'
21
+ spec . add_development_dependency 'sqlite3' , '~> 1.3.6'
22
22
spec . add_development_dependency 'rake' , '~> 11.3'
23
23
spec . add_development_dependency 'rspec-rails' , '~> 3.5'
24
24
spec . add_development_dependency 'with_model' , '~> 2.0'
Original file line number Diff line number Diff line change 18
18
Rails . application . config . active_record . belongs_to_required_by_default = true
19
19
20
20
# Do not halt callback chains when a callback returns false. Previous versions had true.
21
- ActiveSupport . halt_callback_chains_on_return_false = false
21
+ if Rails . version < '5.2'
22
+ ActiveSupport . halt_callback_chains_on_return_false = false
23
+ end
22
24
23
25
# Configure SSL options to enable HSTS with subdomains. Previous versions had false.
24
26
Rails . application . config . ssl_options = { hsts : { subdomains : true } }
Original file line number Diff line number Diff line change
1
+ if Rails . version >= '5.1.0' && Rails . application . config . active_record . sqlite3 . present?
2
+ Rails . application . config . active_record . sqlite3 . represent_boolean_as_integer = true
3
+ end
You can’t perform that action at this time.
0 commit comments