Class: Rack::CsrfDetector::ActiveRecordInstrument
- Inherits:
-
Object
- Object
- Rack::CsrfDetector::ActiveRecordInstrument
- Defined in:
- lib/rack/csrf_detector/active_record_instrument.rb
Instance Method Summary collapse
Instance Method Details
#use! ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/rack/csrf_detector/active_record_instrument.rb', line 2 def use! require 'active_record/connection_adapters/abstract/transaction' if ActiveRecord::VERSION::STRING.match(/^4.2/) 🙉_activerecord_4_2! else 🙉_activerecord_4_0! end end |