Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Apr 2, 2013
  1. @rubys
Commits on Mar 30, 2013
  1. @vijaydev

    Merge branch 'master' of

    vijaydev authored
    [ci skip]
Commits on Mar 15, 2013
  1. @senny

    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. @senny

    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. @eLobato

    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. @vijaydev

    copy edits [ci skip]

    vijaydev authored
Commits on Feb 7, 2013
  1. @mdesantis
Commits on Jan 26, 2013
  1. @senny
Commits on Jan 18, 2013
  1. @guilleiguaran

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

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

    User Rails 4 find_by

    robertomiranda authored
Commits on Jan 6, 2013
  1. @amatsuda

    These are already required through AS/rails

    amatsuda authored
    * dependencies/autoload
    * concern
    * deprecation
Commits on Dec 30, 2012
  1. @arunagw
Commits on Dec 29, 2012
  1. @tenderlove
  2. @tenderlove
  3. @tenderlove

    fix PG typecasting errors

    tenderlove authored
Commits on Dec 1, 2012
  1. @alvaropereyra
  2. @vijaydev

    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. @carlosantoniodasilva

    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. @carlosantoniodasilva

    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. @carlosantoniodasilva
Commits on Nov 16, 2012
  1. @vijaydev

    Merge branch 'master' of

    vijaydev authored
Commits on Nov 15, 2012
  1. @tenderlove
  2. @tenderlove
  3. @tenderlove
  4. @tenderlove
Commits on Nov 12, 2012
  1. @senny

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

    senny authored senny committed
    Closes #7551
Commits on Nov 10, 2012
  1. @AvnerCohen

    1.9 Syntax related changes

    AvnerCohen authored
Commits on Oct 17, 2012
  1. @tenderlove
Commits on Oct 15, 2012
  1. @refractalize
Commits on Sep 5, 2012
  1. @elliterate
Commits on Aug 2, 2012
  1. @fxn
Commits on Jun 25, 2012
  1. @carlosantoniodasilva

    Ensure Arel columns are typecasted properly when grouping with calcul…

    carlosantoniodasilva authored
    Fix build issue with postgresql.
Commits on Jun 24, 2012
  1. @ernie

    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. @carlosantoniodasilva
Something went wrong with that request. Please try again.