Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Feb 17, 2015
  1. @vipulnsward

    Deprecated passing of `start` value to `find_in_batches` and `find_ea…

    vipulnsward authored
    …ch` in favour of `begin_at` value.
Commits on Feb 8, 2015
  1. @vipulnsward

    Add an option `end_at` to `find_in_batches`

    vipulnsward authored
    that complements the `start`parameter to specify where to stop batch processing
Commits on Dec 30, 2013
  1. @vipulnsward

    2075f39 introduced a regression in includes/preloades

    vipulnsward authored
    by calling `read_attribute` on an association when preloading takes places, instead of using loaded records in `association.target`.
    
    tl;dr
    
    Records are not made properly available via `read_attribute` when preloding in simultaneous,
    but value of `@loaded` is already set true, and records concatenated in `association.target` on an association object.
    When `@loaded` is true we return an object of `AlreadyLoaded` in preload_for. In `AlreadyLoaded` to return preloaded
    records we make wrong use of `read_attribute`, instead of `target` records.
    
    The regression is fixed by making use of the loaded records in `association.target` when the preloading takes place.
    
    Fixes #13437
Commits on Dec 3, 2013
  1. @vipulnsward

    Currently, we clear query_cache in cache block finish, even if we may…

    vipulnsward authored
    … already have cache true.
    
    This commit takes into account the last cache_enabled value, before clearing query_cache.
Commits on Nov 25, 2013
  1. @vipulnsward
Commits on Oct 3, 2013
  1. @vipulnsward
Commits on Jul 22, 2013
  1. @vipulnsward

    rescue from all exceptions in `ConnectionManagement#call`

    vipulnsward authored
    Fixes #11497
    
    As `ActiveRecord::ConnectionAdapters::ConnectionManagement` middleware does not rescue from Exception (but only from StandardError),
    the Connection Pool quickly runs out of connections when multiple erroneous Requests come in right after each other.
    
    Recueing from all exceptions and not just StandardError, fixes this behaviour.
Commits on Jul 3, 2013
  1. @vipulnsward

    Remove deprecated `ActiveRecord::Fixtures.find_table_name` in favour …

    vipulnsward authored
    …of `ActiveRecord::Fixtures.default_fixture_model_name`.
Commits on Mar 26, 2013
  1. @vipulnsward
Commits on Mar 20, 2013
  1. @vipulnsward
Something went wrong with that request. Please try again.