module Bouncefetch
  class Application
    class Rules < Configuration
      alias_method :type, :setup

      def crosschecks &block
        setup :crosschecks, &block
      end

      def rule condition = nil, &block
        @current_store[:rules] ||= []
        @current_store[:rules].unshift Rule.new(block || condition)
      end
    end
  end
end

module Bouncefetch
  class Application
    class Rules < Configuration
      alias_method :type, :setup

      def crosschecks &block
        setup :crosschecks, &block
      end

      def rule condition = nil, crosscheck = true, &block
        @current_store[:rules] ||= []
        @current_store[:rules].unshift Rule.new(block || condition, crosscheck)
      end
    end
  end
end

Add crosscheck option to rule define helper
Add crosscheck option to rule define helper
