Permalink
Commits on Aug 5, 2012
  1. edit of previous content

     explains how to add/override engine classes in the main rails app via
    1) Class#class_eval
    2) ActiveSupport::Concern
    westonplatter committed Aug 5, 2012
Commits on Aug 4, 2012
  1. Merge branch 'master' of github.com:lifo/docrails

    Conflicts:
    	activemodel/lib/active_model/secure_password.rb
    	activerecord/lib/active_record/associations/collection_proxy.rb
    vijaydev committed Aug 4, 2012
  2. copy edits [ci skip]

    vijaydev committed Aug 4, 2012
  3. Revert "Fix string interpolation in belongs_to docs"

    This reverts commit 3fb0100.
    vijaydev committed Aug 3, 2012
  4. Merge pull request #7260 from thomasklemm/patch-1

    Update Migration Docs: Defaults for Boolean Fields
    vijaydev committed Aug 4, 2012
  5. Update Migration Docs: Defaults for Boolean Fields

    A Boolean field will accept true or false as defaults instead of 0 / 1.
    thomasklemm committed Aug 4, 2012
  6. added info about an error that mysql gives when rails@localhost has a…

    … password; removed reference to activerecord/test/connections, which isn't there anymore
    Ace Suares committed Aug 4, 2012
Commits on Aug 3, 2012
  1. Merge pull request #7253 from acapilleri/lenght_validator_errors_options

    calculate errors_options one time in validate_each
    rafaelfranca committed Aug 3, 2012
  2. calculate errors_options one time in validate_each

    errors_options is calculated for every *CHECKS* but it could be
    calculated one time  because options and RESERVED_OPTIONS
    not change during this cycle
    acapilleri committed Aug 3, 2012
  3. Don't eager load all this

    Some are loaded from Base which is loaded when a model inherits from it
    and some others are used in rake tasks
    spastorino committed Aug 3, 2012
  4. Remove ActiveRecord::Base.to_a

    On reflection, it seems like a bit of a weird method to have on
    ActiveRecord::Base, and it shouldn't be needed most of the time anyway.
    jonleighton committed Aug 3, 2012
  5. Allow Relation#merge to take a proc.

    This was requested by DHH to allow creating of one's own custom
    association macros.
    
    For example:
    
        module Commentable
          def has_many_comments(extra)
            has_many :comments, -> { where(:foo).merge(extra) }
          end
        end
    
        class Post < ActiveRecord::Base
          extend Commentable
          has_many_comments -> { where(:bar) }
        end
    jonleighton committed Aug 3, 2012
  6. Merge pull request #7231 from armanddp/no_content

    Remove single character body in head(:no_content) response
    rafaelfranca committed Aug 3, 2012
Commits on Aug 2, 2012
  1. Collapsed dual checks (one for content headers and one for content) i…

    …nto a single check.
    
    Rails includes a single character body to a head(:no_content) response to work around an old Safari bug where headers were ignored if no body sent.
    
    This patch brings the behavior slightly closer to spec if :no_content/204 is explicity requested via a head only response.
    
    Status comparison done on symbolic and numeric values
    
    Not returning any content when responding with head and limited to a status code that explicitly states no content will be returned - 100..199, 204, 205, 304.
    armanddp committed Aug 2, 2012
  2. Fix ActiveModel::Serializers::Xml#to_xml reference

    Link to ActiveRecord::Serialization#to_xml for more details
    paneq committed Aug 2, 2012
  3. Merge pull request #7240 from steveklabnik/fix_2301

    Fix for digest authentication bug - issue #2301 in rails/rails
    rafaelfranca committed Aug 2, 2012