Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Apr 2, 2013
  1. Sam Ruby
Commits on Mar 30, 2013
  1. Vijay Dev

    Merge branch 'master' of

    vijaydev authored
    [ci skip]
Commits on Mar 15, 2013
  1. Yves Senn

    Deprecate the `:distinct` option for `Relation#count`.

    senny authored
    We moved more and more away from passing options to finder / calculation
    methods. The `:distinct` option in `#count` was one of the remaining places.
    Since we can now combine `Relation#distinct` with `Relation#count` the option
    is no longer necessary and can be deprecated.
  2. Yves Senn

    rename `Relation#uniq` to `Relation#distinct`. `#uniq` still works.

    senny authored
    The similarity of `Relation#uniq` to `Array#uniq` is confusing. Since our
    Relation API is close to SQL terms I renamed `#uniq` to `#distinct`.
    There is no deprecation. `#uniq` and `#uniq!` are aliases and will continue
    to work. I also updated the documentation to promote the use of `#distinct`.
Commits on Mar 12, 2013
  1. Daniel Lobato García

    Uniq cannot be used directly on an ActiveRecord model. 'DISTINCT fiel…

    eLobato authored
    …d' is the only pluck query that translates into the aforementioned SQL
Commits on Feb 15, 2013
  1. Vijay Dev

    copy edits [ci skip]

    vijaydev authored
Commits on Feb 7, 2013
  1. Maurizio De Santis
Commits on Jan 26, 2013
  1. Yves Senn
Commits on Jan 18, 2013
  1. Guillermo Iguaran

    Revert "Merge pull request #8989 from robertomiranda/use-rails-4-find…

    guilleiguaran authored
    This reverts commit 637a7d9, reversing
    changes made to 5937bd0.
  2. Roberto Miranda

    User Rails 4 find_by

    robertomiranda authored
Commits on Jan 6, 2013
  1. Akira Matsuda

    These are already required through AS/rails

    amatsuda authored
    * dependencies/autoload
    * concern
    * deprecation
Commits on Dec 30, 2012
  1. Arun Agrawal
Commits on Dec 29, 2012
  1. Aaron Patterson
  2. Aaron Patterson
  3. Aaron Patterson

    fix PG typecasting errors

    tenderlove authored
Commits on Dec 1, 2012
  1. Alvaro Pereyra Rabanal
  2. Vijay Dev

    copy edits [ci skip]

    vijaydev authored
  3. Fix Calculations#pluck doc to mention several attributes can be selec…

    Florent Guilleux authored
    …ted [ci skip]
Commits on Nov 22, 2012
  1. Carlos Antonio da Silva

    Deprecate Relation#sum with a block.

    carlosantoniodasilva authored
    To perform a sum calculation over the array of elements, use to_a.sum(&block).
    Please check the discussion in f9cb645
    for more context.
  2. Carlos Antonio da Silva

    Revert "Yield only one argument instead of splatting."

    carlosantoniodasilva authored
    This reverts commit f9cb645.
    Revert "Allow blocks for count with ActiveRecord::Relation. Document and test that sum allows blocks"
    This reverts commit 9cc2bf6.
Commits on Nov 18, 2012
  1. Carlos Antonio da Silva
Commits on Nov 16, 2012
  1. Vijay Dev

    Merge branch 'master' of

    vijaydev authored
Commits on Nov 15, 2012
  1. Aaron Patterson
  2. Aaron Patterson
  3. Aaron Patterson
  4. Aaron Patterson
Commits on Nov 12, 2012
  1. Yves Senn

    `#pluck` can be used on a relation with `select` clause.

    senny authored senny committed
    Closes #7551
Commits on Nov 10, 2012
  1. Avner Cohen

    1.9 Syntax related changes

    AvnerCohen authored
Commits on Oct 17, 2012
  1. Aaron Patterson
Commits on Oct 15, 2012
  1. Tim Macfarlane
Commits on Sep 5, 2012
  1. Ian Lesperance
Commits on Aug 2, 2012
  1. Xavier Noria
Commits on Jun 25, 2012
  1. Carlos Antonio da Silva

    Ensure Arel columns are typecasted properly when grouping with calcul…

    carlosantoniodasilva authored
    Fix build issue with postgresql.
Commits on Jun 24, 2012
  1. Ernie Miller

    Stop assuming strings for grouped calculations

    ernie authored
    Execute_grouped_calculation is one of those places where
    ActiveRecord forgets that it has ARel underpinnings, and
    assumes that the values provided to group_values are
    strings. This artificially hobbles otherwise functional
    code. This patch stops assuming that incoming values
    respond to to_sym, stops using string interpolation for
    table aliases on objects that support aliasing, and stops
    unnecessarily joining group_values on the relation.
    Additionally, it calls to_sql, if available, on objects
    sent to column_alias_for, in order to get a more reasonable
    alias string than a non-string's default to_str method.
Commits on Jun 22, 2012
  1. Carlos Antonio da Silva
Something went wrong with that request. Please try again.