lib/surrealist/builder.rb
# Checks if the instance responds to the method and whether it returns an AR::Relation
#
# @param [Object] instance
# @param [Symbol] method
#
# @return [Boolean]
Checks if the instance responds to the method and whether it returns an AR::Relation
Checks if the instance responds to the method and whether it returns an AR :: Relation
def ar_collection?(instance, method)
      defined?(ActiveRecord) &&
        instance.respond_to?(method) &&
        instance.send(method).is_a?(ActiveRecord::Relation)
    end
def ar_collection? ( instance , method ) defined? ( ActiveRecord ) && instance . respond_to? ( method ) && instance . send ( method ) . is_a? ( ActiveRecord :: Relation ) end
Checks if the instance responds to the method and whether it returns an AR::Relation
Checks if the instance responds to the method and whether it returns an AR :: Relation
None
Boolean
instance
<not_specific>
method
<not_specific>
<not_specific>
None