Permalink
Commits on Jul 15, 2014
  1. @ernie

    Merge pull request #317 from bigxiang/ruby-2-rails-edge

    Make Squeel compatible with Rails 4.1 and Rails 4.2.0.alpha
    ernie committed Jul 15, 2014
  2. @bigxiang

    Add a spec to prove original AR behavior not be broken. #313

    Example:
    
        Person.joins(:articles).where(articles: { person_id: Person.first })
        Person.joins(:articles).where(articles: { person_id: Person.all.to_a })
    bigxiang committed Jul 15, 2014
  3. @bigxiang

    Squeel can bind params for CollectionProxy in subquery correctly afte…

    …r Rails 4
    
    Fix #312
    
    Examples:
    
        before:
    
        Tag.from{first_article.tags.as(Tag.table_name)}.order{tags.name}.to_a
        # => returns error or []
    
        after:
    
        Tag.from{first_article.tags.as(Tag.table_name)}.order{tags.name}.to_a
        # => [<Tag>, <Tag>, <Tag>, ...]
    bigxiang committed Jul 15, 2014
Commits on Jul 11, 2014
  1. @bigxiang
Commits on Jul 9, 2014
  1. @bigxiang
  2. @bigxiang
Commits on Jul 6, 2014
  1. @bigxiang

    Remove shared examples, it should be clearer to review

    what changed based on Rails versions in specs.
    - Also remove some dup methods
    bigxiang committed Jul 6, 2014
Commits on Jul 4, 2014
  1. @bigxiang

    Add compatibility to Ruby 2.0+ with Rails 4.1 and 4.2

    - Remove machinist, make model generation more robust and simplier
    - Use polyamorous master because it just compated with Rails master
    - Brand new Context class, because JoinAssociation changed a lot
    - Add 4.1 and 4.2 folders under adapters
    - Add some ! methods to visitors, so that we can throw some unexpected behaviors from them
    - Split specs into 3.x-4.0, 4.1, 4.2 folders in order to make tests easier
    - Make all specs green from Rails 3.0
    - Pend few specs because of unnecessary behaviors on Rails 4.1 & 4.2 I think
    bigxiang committed Jun 26, 2014
Commits on Jul 3, 2014
  1. @joseluistorres @radar
  2. @joseluistorres @radar
  3. @joseluistorres @radar

    fix for arel

    joseluistorres committed with radar Mar 9, 2014
  4. @joseluistorres @radar
Commits on Apr 11, 2014
  1. @radar

    Ruby .ruby-gemset and .ruby-version files

    People should be able to use whatever gemset and ruby version they like
    radar committed Apr 11, 2014
  2. @radar
Commits on Feb 21, 2014
  1. @ernie

    Merge pull request #308 from snkashis/patch-1

    update travis-ci badge on readme
    ernie committed Feb 21, 2014
  2. @snkashis
Commits on Jan 21, 2014
  1. @ernie

    Merge pull request #303 from korbin/master

    Update documentation to contain new author name
    ernie committed Jan 21, 2014
Commits on Jan 20, 2014
Commits on Oct 25, 2013
  1. @ernie

    Merge pull request #282 from iamvery/update-gem-docs

    Update gem docs
    ernie committed Oct 25, 2013
Commits on Oct 24, 2013
  1. @iamvery

    Update gemspec summary and documentation

    * Squeel supports Rails 3 & 4
    iamvery committed Oct 24, 2013
  2. @iamvery

    Update gemspec homepage

    iamvery committed Oct 24, 2013
Commits on Oct 9, 2013
  1. @ernie

    Detect join nodes properly in AR Contexts.

    Fixes #273
    ernie committed Oct 9, 2013
Commits on Oct 2, 2013
  1. @ernie

    Find AR::Relations in build_where, append binds

    Possible fix for #272.
    ernie committed Oct 2, 2013
Commits on Sep 22, 2013
  1. @ernie

    Argh. PUTS.

    ernie committed Sep 22, 2013
Commits on Sep 3, 2013
  1. @ernie

    Bump version

    ernie committed Sep 3, 2013
  2. @ernie
  3. @ernie
  4. @ernie

    Don't rely on polymorphic? method

    It's not present on older ARs.
    ernie committed Sep 3, 2013
  5. @ernie
  6. @ernie
Commits on Aug 2, 2013
  1. @ernie

    Merge pull request #264 from peternixey/master

    I've added a couple of lines into the Readme to explain how to select multiple attributes
    ernie committed Aug 2, 2013
Commits on Aug 1, 2013
  1. @peternixey
  2. @peternixey

    Added instructions for how to select multiple attributes in Squeel

    It took me a little while to figure out how to select multiple attributes in a query. I've added little paragraph in which details this
    peternixey committed Aug 1, 2013
Commits on Jul 26, 2013
  1. @meskallito
Commits on Jul 19, 2013
  1. @ernie

    Merge pull request #258 from simi/patch-1

    More love to SQL syntax highlight.
    ernie committed Jul 19, 2013