Sha256: 11047882bf3b9b6b65b538bb8d5ebd38134cd99fa09c0bb69881c893a1271a9f
Contents?: true
Size: 958 Bytes
Versions: 15
Compression:
Stored size: 958 Bytes
Contents
# -*- coding: utf-8 -*- module ActiveRecord module NullRelation # :nodoc: def exec_queries @records = [] end def pluck(*column_names) [] 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 count(*) calculate :count, nil end def sum(*) 0 end def calculate(operation, _column_name, _options = {}) # TODO: Remove _options argument as soon we remove support to # activerecord-deprecated_finders. if operation == :count group_values.any? ? Hash.new : 0 else nil end end def exists?(_id = false) false end end end
Version data entries
15 entries across 15 versions & 1 rubygems