Module: Card::Query::Clause

Included in:
CardQuery, Value
Defined in:
card/lib/card/query/clause.rb

Instance Method Summary collapse

Instance Method Details

#connectionObject



14
15
16
# File 'card/lib/card/query/clause.rb', line 14

def connection
  @connection ||= ActiveRecord::Base.connection
end

#quote(v) ⇒ Object



10
11
12
# File 'card/lib/card/query/clause.rb', line 10

def quote v
  connection.quote(v)
end

#safe_sql(text) ⇒ Object

attr_accessor :clause



6
7
8
# File 'card/lib/card/query/clause.rb', line 6

def safe_sql text
  Query.safe_sql text
end