Commits on Mar 24, 2012
  1. [#5559] Do not black out the system timezone DST jump hour if Time.zo…

    …ne differs from that.
    
    The system timezone DST jump hour should not be blacked out by Time.zone.parse if current Time.zone does not do the jump at that time.
    
    Fixes #5559.
    committed Mar 23, 2012
  2. @vijaydev

    Merge branch 'master' of github.com:lifo/docrails

    Conflicts:
    	guides/source/ruby_on_rails_guides_guidelines.textile
    vijaydev committed Mar 24, 2012
  3. @vijaydev

    Merge pull request #5569 from arunagw/warning_remove_master

    removed warning: shadowing outer local variable - exception
    vijaydev committed Mar 24, 2012
  4. @vijaydev

    spacing fix in guide [ci skip]

    vijaydev committed Mar 24, 2012
  5. @arunagw
  6. @tenderlove

    Merge pull request #5567 from tpope/xhr-boolean

    Return an actual boolean from xml_http_request?
    tenderlove committed Mar 23, 2012
  7. @tpope
Commits on Mar 23, 2012
  1. [getting started][ci skip] fix link to the code

    Fabi��n Rodr��guez committed Mar 22, 2012
  2. @tenderlove
  3. @tenderlove
  4. @tenderlove

    Merge pull request #5550 from schneems/schneems/server_env

    Fix environment support for rails server, and match interface of rails console
    tenderlove committed Mar 23, 2012
  5. @josevalim

    Merge pull request #5518 from rafaelfranca/minor-refactor

    Remove code duplication
    josevalim committed Mar 23, 2012
  6. @drogus

    Merge pull request #5556 from rafaelfranca/remove-warning

    use the new scope syntax on the tests to avoid DEPRECATION WARNINGS.
    drogus committed Mar 23, 2012
  7. @rafaelfranca

    Use the new scope syntax

    rafaelfranca committed Mar 22, 2012
  8. @josevalim

    Merge pull request #5374 from nertzy/remove_deprecated_partial_path_f…

    …rom_active_model_naming
    
    Remove ActiveModel::Naming#partial_path
    josevalim committed Mar 23, 2012
  9. @drogus

    Fix tests, when creating rescue handler, we need to check for arity now

    Before it was handled by Proc.bind, but since Proc.bind has been
    deprecated, this is no longer the case and returned handler
    needs to match rescuer.
    drogus committed Mar 23, 2012
  10. @Mik-die
  11. @drogus

    Merge pull request #5546 from mptre/master

    Fixed missing space bug introduces in rails/rails@9299bfd
    drogus committed Mar 23, 2012
Commits on Mar 22, 2012
  1. @tenderlove
  2. @tenderlove

    Merge pull request #5552 from lest/patch-3

    deprecate Proc#bind that can cause symbol memory leak
    tenderlove committed Mar 22, 2012
  3. @lest
  4. @schneems

    match rails console environment support, to server

    rails server takes `-e` as an argument to specify RAILS_ENV, rails console currently does not have the same interface. This commit fixes this disparity so developers can manually specify `RAILS_ENV` or can pass in an environment with a `-e`.
    schneems committed Mar 22, 2012
  5. @joegoggins

    Adding documentation for ActiveRecord::Base.abstract_class to clarify…

    … a particular usecase for this feature (to allow you to use inheritance in ActiveRecord without using the STI table name
    joegoggins committed Mar 22, 2012
  6. Fixed missing space bug introduces in rails/rails@9299bfd.

    Anton Lindqvist committed Mar 22, 2012
  7. Update config.assets.initialize_on_precompile warning to include engi…

    …ne side affects
    adman65 committed Mar 22, 2012
  8. @kucaahbe
  9. @drogus

    Merge pull request #5540 from mhfs/another_blank_line_fix

    Avoid another blank line in generated migration and remove assertion as per @spastorino request
    drogus committed Mar 21, 2012
Commits on Mar 21, 2012
  1. @tenderlove
  2. @tenderlove
  3. @tenderlove

    evented subscribers work

    tenderlove committed Mar 21, 2012
  4. @tenderlove
  5. @tenderlove
  6. @mhfs
  7. @jonleighton

    Deprecate eager-evaluated scopes.

    Don't use this:
    
        scope :red, where(color: 'red')
        default_scope where(color: 'red')
    
    Use this:
    
        scope :red, -> { where(color: 'red') }
        default_scope { where(color: 'red') }
    
    The former has numerous issues. It is a common newbie gotcha to do
    the following:
    
        scope :recent, where(published_at: Time.now - 2.weeks)
    
    Or a more subtle variant:
    
        scope :recent, -> { where(published_at: Time.now - 2.weeks) }
        scope :recent_red, recent.where(color: 'red')
    
    Eager scopes are also very complex to implement within Active
    Record, and there are still bugs. For example, the following does
    not do what you expect:
    
        scope :remove_conditions, except(:where)
        where(...).remove_conditions # => still has conditions
    jonleighton committed Mar 21, 2012