Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Feb 11, 2015
  1. Bogdan Gusiev
Commits on Jan 29, 2015
  1. Bogdan Gusiev
Commits on Jan 23, 2015
  1. Bogdan Gusiev

    Extracted `ActiveRecord::AttributeAssignment` to `ActiveModel::Attrib…

    bogdan authored
    …utesAssignment`
    
    Allows to use it for any object as an includable module.
Commits on Dec 23, 2014
  1. Bogdan Gusiev

    Remove unneeded special case to calculate size for has_many :through

    bogdan authored
    All cases are properly handled in CollectionAssociation
    for all subclasses of this association
Commits on Dec 1, 2014
  1. Bogdan Gusiev
Commits on Aug 14, 2014
  1. Bogdan Gusiev

    Fixed AR::Relation#where edge case with Hash and other Relation

    bogdan authored
    Example:
    
      Author.where(posts: { author_id: Author.where(country_id: 1) }).joins(:posts)
Commits on Aug 5, 2014
  1. Bogdan Gusiev
  2. Bogdan Gusiev
Commits on Jun 23, 2014
  1. Bogdan Gusiev

    Add AR::Base#validate! method

    bogdan authored
    Acts same as valid? but raises AR::RecordInvalid exception
    if validation fails
Commits on May 5, 2014
  1. Bogdan Gusiev

    Put back Relation#join method as a delegate to Array

    bogdan authored
    This is a regression 4.0 -> 4.1 fix.
    In 4.1.0 Relation#join is delegated to Arel#SelectManager.
    In 4.0 series it is delegated to Array#join
    
    This patch puts back the behaviour of 4.0
Commits on May 3, 2014
  1. Bogdan Gusiev

    [Fixes #14948] Hash#to_query: Changed a way how empty hash and empty …

    bogdan authored
    …array are serialized
    
    Empty Hash or Array should not present in serialization result
    
        {a: []}.to_query # => ""
        {a: {}}.to_query # => ""
    
    For more info see #14948.
Commits on Dec 4, 2013
  1. Bogdan Gusiev
Commits on Nov 7, 2013
  1. Bogdan Gusiev

    Fix AS::TimeWithZone#as_json docs

    bogdan authored
    According to 28ab79d
Commits on Sep 23, 2013
  1. Bogdan Gusiev
  2. Bogdan Gusiev

    Ability to pass block to AV#select helper

    bogdan authored
      Example:
    
        = select(report, "campaign_ids") do
          - available_campaigns.each do |c|
            %option{:data => {:tags => c.tags.to_json}, :value => c.id}= c.name
  3. Bogdan Gusiev

    Changelog entry for pr #11474

    bogdan authored
Commits on Aug 28, 2013
  1. Bogdan Gusiev
Commits on Jul 19, 2013
  1. Bogdan Gusiev
Commits on May 16, 2013
  1. Bogdan Gusiev Aaron Patterson

    Add more data to AR::UnknownAttributeError

    bogdan authored tenderlove committed
    begin
      Topic.new("hello" => "world")
    rescue ActiveRecord::UnknownAttributeError => e
      e.record # => #<Topic ... >
      e.attribute # => "hello"
    end
Commits on Jan 6, 2013
  1. Bogdan Gusiev
Commits on Nov 21, 2012
  1. Bogdan Gusiev
Commits on Nov 10, 2012
  1. Bogdan Gusiev
Commits on Sep 10, 2012
  1. Bogdan Gusiev

    Revert "Changelog entry for PR #7560"

    bogdan authored
    This reverts commit ca80067.
    Entry already added in 895233
  2. Bogdan Gusiev

    Changelog entry for PR #7560

    bogdan authored
Commits on Sep 7, 2012
  1. Bogdan Gusiev
Commits on Aug 10, 2012
  1. Bogdan Gusiev

    RouteSet: refactor internals

    bogdan authored
    No need to build valid_conditions array.
    We can get all the data in place.
Commits on Aug 6, 2012
  1. Bogdan Gusiev
Commits on Aug 4, 2012
  1. Bogdan Gusiev
  2. Bogdan Gusiev
  3. Bogdan Gusiev

    Simplify logical statement

    bogdan authored
Commits on Jul 31, 2012
  1. Bogdan Gusiev

    AR::Relation#order: make new order prepend old one

    bogdan authored
        User.order("name asc").order("created_at desc")
        # SELECT * FROM users ORDER BY created_at desc, name asc
    
    This also affects order defined in `default_scope` or any kind of associations.
Commits on Jul 29, 2012
  1. Bogdan Gusiev
Commits on Jul 10, 2012
  1. Bogdan Gusiev
Commits on Jun 26, 2012
  1. Bogdan Gusiev

    AS::Callbacks: deprecate monkey patch code

    bogdan authored
    Deprecate usage of filter object with #before and #after
    methods as around callback
Commits on May 18, 2012
  1. Bogdan Gusiev
Something went wrong with that request. Please try again.