/usr/lib/ruby/vendor_ruby/active_record/connection_adapters/nulldb_adapter/empty_result.rb is in ruby-activerecord-nulldb-adapter 0.3.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | class ActiveRecord::ConnectionAdapters::NullDBAdapter
class EmptyResult < Array
attr_writer :columns
def rows
[]
end
def column_types
columns.map{|col| col.type}
end
def columns
@columns ||= []
end
end
end
|