aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | | | | indentationAaron Patterson2013-06-111-1/+1
| |/ / / / / / / / /
| * | | | | | | | | remove evals from the associationAaron Patterson2013-06-111-8/+2
| | | | | | | | | |
| * | | | | | | | | reduce evals in depdendent associationsAaron Patterson2013-06-111-1/+2
| | | | | | | | | |
| * | | | | | | | | remove some evals from callback conditionalsAaron Patterson2013-06-113-2/+17
| | | | | | | | | |
| * | | | | | | | | Merge pull request #10897 from prathamesh-sonpatki/active-support-typosCarlos Antonio da Silva2013-06-101-3/+3
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Fixed typos in activesupport [ci skip]
| | * | | | | | | | | Fixed typos in activesupport [ci skip]Prathamesh Sonpatki2013-06-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - eval'ed to eval'd in accordance with https://github.com/rails/rails/pull/10889 - tried to improve statement about compiling Procs into methods using define_method
| * | | | | | | | | | Merge pull request #10906 from darai2k/fix-activemodel-validations-docCarlos Antonio da Silva2013-06-101-1/+0
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | fix ActiveModel::Validations.validators_on doc
| | * | | | | | | | | | fix ActiveModel::Validations.validators_on docDaichi Arai2013-06-101-1/+0
| |/ / / / / / / / / /
| * | | | | | | | | | Merge pull request #10795 from atambo/masterSteve Klabnik2013-06-094-1/+19
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Don't blindly call blame_file! on exceptions in ActiveSupport::Dependes::Loadable
| | * | | | | | | | | | Don't blindly call blame_file! on exceptions in ↵Andrew Kreiling2013-06-094-1/+19
| |/ / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ActiveSupport::Dependencies::Loadable It is possible under some environments to receive an Exception that is not extended with Blamable (e.g. JRuby). ActiveSupport::Dependencies::Loadable#load_dependency blindly call blame_file! on the exception which throws it's own NoMethodError exception and hides the original Exception. This commit fixes #9521
| * | | | | | | | | | Merge pull request #10710 from senny/5554_let_the_database_raise_on_countsJon Leighton2013-06-094-11/+32
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Remove column restrictions for `#count`, let the database raise if the SQL is invalid.
| | * | | | | | | | | | Remove fall back and column restrictions for `count`.Yves Senn2013-06-093-10/+31
| | | | | | | | | | | |
| | * | | | | | | | | | cleanup whitespace in relation.rbYves Senn2013-06-091-1/+1
| |/ / / / / / / / / /
| * | | | | | | | | | Merge pull request #10886 from ↵Jon Leighton2013-06-0911-19/+45
| |\ \ \ \ \ \ \ \ \ \ | | |/ / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | wangjohn/chnges_for_automatic_inverse_associations Documentation and cleanup of automatic discovery of inverse associations
| | * | | | | | | | | Getting rid of the +automatic_inverse_of: false+ option in associations in favorwangjohn2013-06-0811-19/+45
| | | |/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of using +inverse_of: false+ option. Changing the documentation and adding a CHANGELOG entry for the automatic inverse detection feature.
| * | | | | | | | | Merge pull request #10889 from diatmpravin/fix-typo-in-action-viewXavier Noria2013-06-081-1/+1
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | fixed typo in action_view template
| | * | | | | | | | | fixed typo in action_view templatediatmpravin2013-06-081-1/+1
| | |/ / / / / / / /
| * | | | | | | | | Merge pull request #10893 from arunagw/test_for_checkpending_middlewareGuillermo Iguaran2013-06-081-0/+8
| |\ \ \ \ \ \ \ \ \ | | |/ / / / / / / / | |/| | | | | | | | Testing CheckPending middleware
| | * | | | | | | | Testing CheckPending middlewareArun Agrawal2013-06-081-0/+8
| | | | | | | | | |
| * | | | | | | | | Override Time.at to work with Time-like valuesAndrew White2013-06-083-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Time.at allows passing a single Time argument which is then converted to an integer. The conversion code since 1.9.3r429 explicitly checks for an instance of Time so we need to override it to allow DateTime and ActiveSupport::TimeWithZone values.
| * | | | | | | | | ’ -> ' [ci skip]Steve Klabnik2013-06-081-1/+1
| |/ / / / / / / /
| * | | | | | | | Merge pull request #10872 from AJAlabs/masterSteve Klabnik2013-06-071-4/+11
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Update Getting Started Guide - Strong Parameter [ci skip]
| | * | | | | | | | Update Getting Started Guide - Strong ParametersAJ Acevedo2013-06-071-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | modified: guides/source/getting_started.md
| * | | | | | | | | Revert "Merge pull request #10539 from davidcelis/ar-sql-improvements"Jon Leighton2013-06-071-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 257fa6897d9c85da16b7c9fcb4ae3008198d320e, reversing changes made to 94725b81f5588e4b0f43222c4f142c3135941b4b. The build failed https://travis-ci.org/rails/rails/builds/7883546
| * | | | | | | | | Merge pull request #10539 from davidcelis/ar-sql-improvementsJon Leighton2013-06-071-5/+1
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Improve performance of ActiveRecord::Relation#blank?
| | * | | | | | | | | ActiveRecord::Relation#blank? should `LIMIT 1`David Celis2013-06-071-5/+1
| |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an SQL improvement to ActiveRecord::Relation#blank?. Currently, it calls `to_a` on the Relation, which loads all records in the association, and calls `blank?` on the loaded Array. There are other ways, however, to check the emptiness of an association that are far more performant. `#empty?`, `#exists?` and `#any?` all attach a `LIMIT 1` to the SQL query before firing it off, which is a nice query improvement. `#blank?` should do the same! Bonus performance improvements will also happen for `#present?`, which merely calls the negation of `#blank?` Signed-off-by: David Celis <me@davidcel.is>
| * | | | | | | | | Merge pull request #10860 from ka8725/activemodel_logCarlos Antonio da Silva2013-06-071-0/+4
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Ignore activemodel/log/ folder
| | * | | | | | | | | Stub logger for testsAndrey Koleshko2013-06-061-0/+4
| | | |_|_|_|_|/ / / | | |/| | | | | | |
| * | | | | | | | | Merge pull request #10875 from vipulnsward/fix_some_typos_in_asCarlos Antonio da Silva2013-06-072-2/+2
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Fix some typos [ci skip]
| | * | | | | | | | | Fix some typosVipul A M2013-06-072-2/+2
| | |/ / / / / / / /
| * | | | | | | | | Merge pull request #10874 from rlivsey/patch-1Andrew White2013-06-071-1/+1
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Docfix: Use public interface instead of setting instance variables
| | * | | | | | | | | Docfix: Use public interface instead of setting instance variablesRichard Livsey2013-06-071-1/+1
| |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | Dynamically setting instance variables based on user input probably isn't a great idea. Better to go through the setter methods provided by attr_accessor.
| * | | | | | | | | Merge pull request #10561 from Empact/nix-throwresultJon Leighton2013-06-076-23/+35
| |\ \ \ \ \ \ \ \ \ | | |_|/ / / / / / / | |/| | | | | | | | Rather than raising ThrowResult when construct_limited_ids_conditions comes up empty, set the relation to NullRelation and rely on its results.
| | * | | | | | | | Rather than raising ThrowResult when construct_limited_ids_conditions comes ↵Ben Woosley2013-05-103-21/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | up empty, set the relation to NullRelation and rely on its results. This will help avoid errors like 2fcafee250ee2, because in most cases NullRelation will do the right thing. Minor bonus is avoiding the use of exceptions for flow control.
| | * | | | | | | | Make NullRelation a bit more like a real relation by returning 0 for ↵Ben Woosley2013-05-102-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | #calculate(:count)
| | * | | | | | | | No point in memoizing a simple literal string.Ben Woosley2013-05-101-1/+1
| | | | | | | | | |
| | * | | | | | | | Add coverage for the fact that pluck without an argument returns all the ↵Ben Woosley2013-05-101-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | table's columns.
| | * | | | | | | | Fix that #pluck wasn't rescuing ThrowResult, meaning it would blow up when ↵Ben Woosley2013-05-102-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | failing to construct_limited_ids_condition.
| * | | | | | | | | Merge pull request #10871 from arunagw/lifo-to-railsXavier Noria2013-06-063-5/+5
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | As we have moved to rails/docrails from lifo/docrails
| | * | | | | | | | | As we have moved to rails/docrails from lifo/docrailsArun Agrawal2013-06-063-5/+5
| |/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changing links to guides. We are not worried for old versions as GitHub is handling the redirects.
| * | | | | | | | | registers recent patch in the railties CHANGELOGXavier Noria2013-06-061-0/+4
| | | | | | | | | |
| * | | | | | | | | clearing autoloaded constants triggers routes reloading [Fixes #10685]Xavier Noria2013-06-062-9/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: railties/test/application/loading_test.rb
| * | | | | | | | | Merge pull request #10867 from iHiD/patch-1Xavier Noria2013-06-061-0/+2
| |\ \ \ \ \ \ \ \ \ | | |_|/ / / / / / / | |/| | | | | | | | Add info about contributing to docs to CONTRIBUTING.md
| | * | | | | | | | Add info about contributing to docs to CONTRIBUTING.mdJeremy Walker2013-06-061-0/+2
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | Encourage more people to contribute to Rails docs by mentioning it in the contribution guide.
* | | | | | | | | add test for 9041454def79d8e61cabe49e7c5cb72cef29138bJan Berdajs2013-06-051-0/+28
| | | | | | | | |
* | | | | | | | | fix serialization type cast when value is already unserializedJan Berdajs2013-06-051-1/+5
|/ / / / / / / /
* | | | | | | | Merge pull request #10851 from arunagw/fixing_build_pending_migrationAaron Patterson2013-06-051-0/+1
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Fixing build for not checking migration
| * | | | | | | | Fixing build for not checking migrationArun Agrawal2013-06-051-0/+1
|/ / / / / / / /
* | | | | | | | Merge pull request #10850 from arunagw/build_fix_null_migrationAaron Patterson2013-06-051-3/+3
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Need to pass parameters
| * | | | | | | | Fix Build. Changing constructor.Arun Agrawal2013-06-051-3/+3
|/ / / / / / / /