lib/cancan/conditions_matcher.rb
# Matches the block or conditions hash
Matches the block or conditions hash
Matches the block or conditions hash
def conditions_empty?
      (@conditions.is_a?(Hash) && @conditions == {}) || @conditions.nil?
    end
def conditions_empty? ( @conditions . is_a? ( Hash ) && @conditions == { } ) || @conditions . nil? end
Matches the block or conditions hash
Matches the block or conditions hash
# @conditions might be an ActiveRecord::Associations::CollectionProxy # which it's `==` implementation will fetch all records for comparison