Class: SuperDiff::ActiveRecord::OperationTrees::ActiveRecordRelation

Inherits:
OperationTrees::Array show all
Defined in:
lib/super_diff/active_record/operation_trees/active_record_relation.rb

Class Method Summary collapse

Methods inherited from OperationTrees::Base

#flatten, #initialize, #perhaps_elide, #pretty_print, #to_diff

Constructor Details

This class inherits a constructor from SuperDiff::OperationTrees::Base

Class Method Details

.applies_to?(value) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/super_diff/active_record/operation_trees/active_record_relation.rb', line 5

def self.applies_to?(value)
  value.is_a?(ActiveRecord::Relation)
end