combustion 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/combustion/configurations/active_record.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97053abef57625a082cfc03848c5822384541e7badc99ad7eda77729eca45e11
|
4
|
+
data.tar.gz: 69afc4e110cc230359c021ee0ed7820241af3bfeaeff0229c441594225c4d732
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4e662dede67e6e44ba8fc570277190e330948f2b73dd1b71067a5caee84d6171a63a54967a56246d06544c6458dbb57c0c2b28ef15401a173fe0f917b47debb
|
7
|
+
data.tar.gz: 1035a1e6b7c2b8b6a4b4d4d1e7bf95838b76a9720db2f240d42abd5c8a55e0318cd54360ccf689118138155254f60fc7ded4cde6cb5437f7f132b233b24753c1
|
@@ -2,13 +2,13 @@
|
|
2
2
|
|
3
3
|
class Combustion::Configurations::ActiveRecord
|
4
4
|
def self.call(config)
|
5
|
+
return unless defined?(ActiveRecord::Railtie)
|
6
|
+
return unless ::ActiveRecord.constants.include?(:MassAssignmentSecurity)
|
7
|
+
|
5
8
|
if ActiveRecord::VERSION::MAJOR >= 7
|
6
9
|
config.active_record.legacy_connection_handling = false
|
7
10
|
end
|
8
11
|
|
9
|
-
return unless defined?(ActiveRecord::Railtie)
|
10
|
-
return unless ::ActiveRecord.constants.include?(:MassAssignmentSecurity)
|
11
|
-
|
12
12
|
# Turn on ActiveRecord attribute whitelisting
|
13
13
|
# This way the dummy app matches new rails apps re: this setting
|
14
14
|
config.active_record.whitelist_attributes = true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: combustion
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pat Allan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|