rack-csrf-detector 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ed2d55ddd88a89e610f11aa2705c204d13db03a
|
4
|
+
data.tar.gz: 4c1087e33bcd5974ff5d4746711b815823caf7a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0634c8d52028c9b4bd43c871e2e8c5cdbc69c14d31d0972a54b54343d62ab00cdc2eb366075572c3c85537bd3dc6207dbe4659328a2c670cc29308049c123f2d
|
7
|
+
data.tar.gz: 436f7482ab9838c18355c0d8930e6508932f56a421da616be718982ffdfa3138a409ac9433e17d96ceec30c0bf6b4c05d856c674b08b0b4fc12210b07186de2b
|
data/lib/rack/csrf_detector.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
require 'active_record/connection_adapters/abstract/transaction'
|
2
|
-
|
3
1
|
class Rack::CsrfDetector::ActiveRecordInstrument
|
4
2
|
def use!
|
3
|
+
require 'active_record/connection_adapters/abstract/transaction'
|
4
|
+
|
5
5
|
if ActiveRecord::VERSION::STRING.match(/^4.2/)
|
6
6
|
🙉_activerecord_4_2!
|
7
7
|
else
|