Tests whether the value in the record is equal to the expected set for the Comparison.
Tests that the record value matches the comparison
@param [Resource, Hash] record
The record containing the value to be matched
@return [Boolean]
@api semipublic
# File lib/dm-core/query/conditions/comparison.rb, line 529 529: def matches?(record) 530: if expected.nil? 531: record_value(record).nil? 532: else 533: super 534: end 535: end
@return [String]
@api private
# File lib/dm-core/query/conditions/comparison.rb, line 563 563: def comparator_string 564: '=' 565: end
@api private
# File lib/dm-core/query/conditions/comparison.rb, line 548 548: def typecast_hash(hash) 549: subject = self.subject 550: subject.target_model.new(subject.query.merge(hash)) 551: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.