Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Aug 3, 2011
  1. @dcadenas

    Add nodes for boolean constants

    dcadenas authored
    This is useful for dynamically created predicates e.g:
    
    expr1 = table.create_false
    expr2 = table.create_false
    
    expr1 = create_a_predicate() if some_condition
    expr2 = create_another_predicate() if some_other_condition
    
    table.where(expr1.and(expr2))
Commits on Apr 29, 2011
  1. @ernie @tenderlove
  2. @tenderlove

    Revert "Merged pull request #40 from gmile/master."

    tenderlove authored
    This reverts commit 490d6f9, reversing
    changes made to dd07005.
  3. @tenderlove

    Merged pull request #40 from gmile/master.

    tenderlove authored
    Passing nil in array generates improper SQL
Commits on Apr 28, 2011
  1. Add support for ordering on expressions

    Arthur Taylor authored
    Conflicts:
    
    	lib/arel.rb
    	lib/arel/attributes/attribute.rb
    	lib/arel/nodes/infix_operation.rb
    	lib/arel/nodes/named_function.rb
    
    Conflicts:
    
    	lib/arel.rb
    	lib/arel/attributes/attribute.rb
Commits on Apr 18, 2011
  1. @ernie @tenderlove

    Improve performance of grouping_any/grouping_all

    ernie authored tenderlove committed
Commits on Mar 24, 2011
  1. @gmile

    Generate more sqlish queue.

    gmile authored
    Now, instead of the following SQL code:
      some_field IN (1, 2, NULL)
    
    Arel will generate the proper one:
      some_field IN (1, 2) OR IS NULL
Commits on Mar 12, 2011
  1. @ernie @tenderlove

    Make as factory method convert alias name to SqlLiteral

    ernie authored tenderlove committed
Commits on Feb 8, 2011
  1. @ernie
Commits on Dec 9, 2010
  1. @tenderlove
Commits on Dec 7, 2010
  1. @tenderlove
  2. @svenfuchs
Commits on Nov 24, 2010
  1. @tenderlove

    adding an AS node

    tenderlove authored
Commits on Nov 17, 2010
  1. @tenderlove

    Fixed Ruby 1.8 performance regression for Nodes::In and Nodes::NotIn …

    Rolf Timmermans authored tenderlove committed
    …queries with very wide ranges that was caused by using Range#min and Range#max rather than Range#begin and Range#end. Ruby 1.8 uses Enumerable#min and Enumerable#max in Ranges, which calls to_a internally. It is not necessary to enumerate the range in order to construct the predicates. At the same time, an off-by-one error (failing test) with exclusive-end Ranges in Nodes::NotIn queries was fixed.
Commits on Oct 27, 2010
  1. @ernie @tenderlove
Something went wrong with that request. Please try again.