Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 212a74d8b7
Fetching contributors…

Cannot retrieve contributors at this time

64 lines (48 sloc) 0.76 kB
# -*- coding: utf-8 -*-
module ActiveRecord
# = Active Record Null Relation
module NullRelation
def exec_queries
@records = []
end
def pluck(column_name)
[]
end
def delete_all(conditions = nil)
0
end
def update_all(updates, conditions = nil, options = {})
0
end
def delete(id_or_array)
0
end
def size
0
end
def empty?
true
end
def any?
false
end
def many?
false
end
def to_sql
@to_sql ||= ""
end
def where_values_hash
{}
end
def count
0
end
def calculate(operation, column_name, options = {})
nil
end
def exists?(id = false)
false
end
end
end
Jump to Line
Something went wrong with that request. Please try again.