def find_with_static_record(*args)#:nodoc:
      if scope(:find).nil? && args
        if args.first.is_a?(Fixnum) &&
            ((args.length == 1 ||
            (args[1].is_a?(Hash) && args[1].values.delete(nil).nil?)))
          return static_record_cache[:primary_key][args.first]
        elsif args.first == :all && args.length == 1
          return static_record_cache[:primary_key].values
        end
      end

      find_without_static_record(*args)
    end
def find_with_static_record(*args)#:nodoc:
      if scope(:find).nil? && args
        if args.first.is_a?(Fixnum) &&
            ((args.length == 1 ||
            (args[1].is_a?(Hash) && args[1].values.delete(nil).nil?)))
          return static_record_cache[:primary_key][args.first]
        elsif args.first == :all && args.length == 1
          return static_record_cache[:primary_key].values
        end
      end

      find_without_static_record(*args)
    end
Perform find by searching through the static record cache
 if only an id is specified