Module: Eql::Adapters::ActiveRecord::ContextHelpers

Defined in:
lib/eql/adapters/active_record.rb

Overview

ContextHelpers module contains template’s helpers

Instance Method Summary collapse

Instance Method Details

#quote(val) ⇒ String

Quote string

Parameters:

  • val (String)

    string to quote

Returns:

  • (String)

    returns safety quoted string



18
19
20
# File 'lib/eql/adapters/active_record.rb', line 18

def quote(val)
  ::ActiveRecord::Base.connection.quote(val)
end