Module: Eaco::Adapters::ActiveRecord::Compatibility::Sanitized

Defined in:
lib/eaco/adapters/active_record/compatibility/sanitized.rb

Overview

Aliases `sanitize` as `connection.quote` for ActiveRecord >= 5.1.

Instance Method Summary collapse

Instance Method Details

#sanitize(d) ⇒ Object

Just returns ActiveRecord::Base.connection.quote.


14
15
16
# File 'lib/eaco/adapters/active_record/compatibility/sanitized.rb', line 14

def sanitize(d)
  self.connection.quote(d)
end