Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: inflector-with…
Commits on May 2, 2013
  1. @fxn
  2. @fxn
  3. @carlosantoniodasilva

    Merge pull request #10426 from tkrajcar/rescue-h1-fix

    carlosantoniodasilva authored
    Add styling to h1 for default rescue layout
  4. @rafaelfranca

    Merge pull request #10423 from wangjohn/refactoring_testing_rakefile

    rafaelfranca authored
    Refactoring the creation of TestTasks to remove code duplication.
  5. @tkrajcar

    Add styling to h1

    tkrajcar authored
  6. @wangjohn
  7. @carlosantoniodasilva

    Merge pull request #10416 from tkhr/add-test-for-AR--Base#to_param

    carlosantoniodasilva authored
    Add test for `AR::Base#to_param`
  8. @take

    Add test for `AR::Base#to_param`

    take authored
    According to the doc of `AR::Base#to_param`(
    7775/activerecord/lib/active_record/integration.rb#L18 ), it returns
    `nil` if the record is not persisted.
  9. @carlosantoniodasilva
  10. @fxn

    Merge pull request #10414 from eiel/fix_dependency

    fxn authored
    Fixes Dependency bug in Active Support
  11. @eiel

    Fixes Dependency bug in Active Support

    eiel authored
    DateTime defined in date.rb
  12. @vipulnsward

    Fix typo in test

    vipulnsward authored
  13. @carlosantoniodasilva
  14. @carlosantoniodasilva
  15. @carlosantoniodasilva

    Merge pull request #10396 from tkhr/extract-test-code-from-base_test.rb

    carlosantoniodasilva authored
    Extract tests code out from AR's base_test.rb to integration_test.rb
  16. @take

    Extract tests code out from AR's base_test.rb to integration_test.rb

    take authored
    `AR::Base#to_param` and `AR::Base#cache_key` is defined at
    active_record/integration.rb, so tests for those methods should be at
  17. @rafaelfranca

    Merge pull request #10408 from patricksrobertson/convert_activemodel_…

    rafaelfranca authored
    Convert ActiveModel to 1.9 hash syntax.
  18. @patricksrobertson

    Convert ActiveModel to 1.9 hash syntax.

    patricksrobertson authored
    I also attempted to fix other styleguide violations such as
    { a: :b } over {a: :b} and foo(b: 'bar') over foo( b: 'bar' ).
  19. @tenderlove

    Merge pull request #7839 from chancancode/handle_aliased_attributes_i…

    tenderlove authored
    Handle aliased attributes in AR::Relation
  20. @carlosantoniodasilva
  21. @carlosantoniodasilva

    Merge pull request #10407 from NARKOZ/encoding-constant

    carlosantoniodasilva authored
    Use constant for encoding
Commits on May 1, 2013
  1. @NARKOZ

    use constant for encoding

    NARKOZ authored
  2. @chancancode

    Handle aliased attributes in ActiveRecord::Relation.

    chancancode authored
    When using symbol keys, ActiveRecord will now translate aliased attribute names to the actual column name used in the database:
    With the model
      class Topic
        alias_attribute :heading, :title
    The call
      Topic.where(heading: 'The First Topic')
    should yield the same result as
      Topic.where(title: 'The First Topic')
    This also applies to ActiveRecord::Relation::Calculations calls such as `Model.sum(:aliased)` and `Model.pluck(:aliased)`.
    This will not work with SQL fragment strings like `Model.sum('DISTINCT aliased')`.
    Github #7839
    *Godfrey Chan*
  3. @rafaelfranca

    Merge pull request #10404 from chadmoone/fix-pg-uuid-default

    rafaelfranca authored
    Allow override of PostgreSQL UUID primary key default
  4. @chadmoone

    allow override of uuid_generate_v4() default by passing default: nil

    chadmoone authored
    without this, it's not possible to use UUID primary keys without uuid-ossp installed and activated
  5. @guilleiguaran

    Merge pull request #10405 from rubys/410-beta

    guilleiguaran authored
    Make railties version match RAILS_VERSION
  6. @rubys
  7. @guilleiguaran

    Merge pull request #10394 from BMorearty/remove-varargs-from-in

    guilleiguaran authored
    Remove varargs from `Object#in?`
  8. @carlosantoniodasilva
  9. @BMorearty
  10. @fxn

    Revert "Consistent use of code syntax formatting for boolean values"

    fxn authored
    Same rationale as previous revert.
    This reverts commit 887225e.
  11. @fxn

    Revert "Correct formatting for remaining booleans"

    fxn authored
    It is not in the contract that flags have to be singletons,
    the use of regular font indicates that.
    This reverts commit 80036f9.
  12. @BMorearty

    Revert "Object#in? also accepts multiple parameters"

    BMorearty authored
    This reverts commit ebf69ab.
    `in?` must not take multiple parameters because its behavior would be
        # Test if "B" is included in a list of names with `"B".in?(*names)`:
        names = ["BMorearty"]
        "B".in?(*names)   # => true
        names = ["BMorearty","rubyduo"]
        "B".in?(*names)   # => false
  13. @vijaydev
  14. @vijaydev

    copy edits [ci skip]

    vijaydev authored
Something went wrong with that request. Please try again.