aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* adding exec_insert for postgresqlAaron Patterson2011-04-111-0/+4
|
* properly name schema queries for the loggerAaron Patterson2011-04-111-10/+10
|
* adding client_encoding method for discovering the encoding set for this ↵Aaron Patterson2011-04-111-0/+62
| | | | client, testing exec_insert on a string
* properly name schema queries for loggingAaron Patterson2011-04-111-3/+3
|
* adding exec_insert to sqlite3Aaron Patterson2011-04-111-0/+4
|
* adding a case_sensitive_modifier for forcing comparisons to be case sensitiveAaron Patterson2011-04-114-0/+15
|
* only support pg >= 8.2, so no need to checkAaron Patterson2011-04-111-7/+4
|
* pg should define insert_sql so that query cache actually works for insertsAaron Patterson2011-04-101-2/+1
|
* community support for pg < 8.2 has ended, so we can drop support for those ↵Aaron Patterson2011-04-101-62/+12
| | | | versions
* Refactored uniqueness validator to use Arel instead of hardcoded SQLBrian Cardarella2011-04-101-26/+11
|
* Using Object#in? and Object#either? in various placesPrem Sichanugrist2011-04-119-9/+23
| | | | There're a lot of places in Rails source code which make a lot of sense to switching to Object#in? or Object#either? instead of using [].include?.
* Remove dead branch code that appeared back in a merge.José Valim2011-04-101-6/+0
|
* Destroying records via nested attributes works independent of reject_if:Durran Jordan2011-04-051-0/+1
| | | | | | | | | | - When a :_destroy truthiness is provided in the attributes hash, the record should get destroyed regardless of the result of the proc or method supplied to :reject_if. (If :allow_destroy is true) [#6006 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Add log message when loading records from Identity Map.Emilio Tagua2011-04-041-1/+8
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Use IM when trying to load records using ID.Emilio Tagua2011-04-043-0/+13
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-04-033-3/+44
|\
| * s/ERb/ERB/gAkira Matsuda2011-04-031-3/+3
| | | | | | | | | | The author of ERB sais, his eRuby implementation was originally named "ERb/ERbLight" and then renamed to "ERB" when started bundled as a Ruby standard lib. http://www2a.biglobe.ne.jp/~seki/ruby/erb.html
| * Symbol to proc is preferred over longer form of mapRyan Bigg2011-03-311-1/+1
| |
| * Cleanup of named_scope documentationRyan Bigg2011-03-311-8/+9
| |
| * Fix typo in named_scope documentationRyan Bigg2011-03-311-1/+1
| |
| * add space to conform with styleEadz2011-03-311-1/+1
| |
| * Documented undocumented feature: Class methods on your model are ↵Eadz2011-03-311-0/+22
| | | | | | | | automatically available on scopes
| * Added back the Callback debugging section by interrogating the _*_callbacks ↵ozzyaaron2011-03-291-0/+18
| | | | | | | | method
* | TableAlias leg ordering has changed, so change accordinglyAaron Patterson2011-03-301-1/+1
| |
* | Merge branch 'master' into zomgAaron Patterson2011-03-2912-25/+105
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (51 commits) order is not guaranteed by this select, so add an order and call first! oracle stores this with microseconds, so convert to seconds before comparing make sure that active connections are not cleared during test when an exception happens clearing active connections in the ConnectionManagement middleware if an exception happens proxy body responses so we close database connections after body is flushed Pass the proper method_name instead of hardcoding to action_name. Quote find_in_batches ORDER BY clause [#6620 state:resolved] Delegate first!, last!, any? and many? to scoped Dont call authenticate_or_request_with_http_basic twice Remove 'warning: ambiguous first argument' when running ActionPack tests Change exists? so that it doesn't instantiate records [#6127 state:resolved] Move mapper_test to the appropriate location Update the wildcard route to be non-greedy by default, therefore be able to match the (.:format) segment [#6605 state:resolved] Fix examples Added Base.http_basic_authenticate_with to do simple http basic authentication with a single class method call [DHH] make sure we have an active database connection before running each connection management test adding active_connections? to the connection pool for finding open connections adding active_connection? to the connection pool testing app delegation from the ConnectionManagement middleware namespacing connection management tests. :heart: ...
| * | make sure that active connections are not cleared during test when an ↵Aaron Patterson2011-03-291-2/+4
| | | | | | | | | | | | exception happens
| * | clearing active connections in the ConnectionManagement middleware if an ↵Aaron Patterson2011-03-291-0/+3
| | | | | | | | | | | | exception happens
| * | proxy body responses so we close database connections after body is flushedAaron Patterson2011-03-291-7/+24
| | |
| * | Quote find_in_batches ORDER BY clause [#6620 state:resolved]Andrew White2011-03-293-3/+14
| | |
| * | Delegate first!, last!, any? and many? to scopedAndrew White2011-03-291-1/+2
| | |
| * | Change exists? so that it doesn't instantiate records [#6127 state:resolved]Andrew White2011-03-291-4/+10
| | |
| * | make sure we have an active database connection before running each ↵Aaron Patterson2011-03-281-1/+5
| | | | | | | | | | | | connection management test
| * | adding active_connections? to the connection pool for finding open connectionsAaron Patterson2011-03-281-0/+6
| | |
| * | adding active_connection? to the connection poolAaron Patterson2011-03-281-0/+6
| | |
| * | sql logger ignores schema statementsAaron Patterson2011-03-282-2/+5
| | |
| * | Bring #reorder backSebastian Martinez2011-03-282-1/+5
| | | | | | | | | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
| * | Added new #update_column method.Sebastian Martinez2011-03-272-0/+15
| | | | | | | | | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
| * | Revert "Removed #update_attribute method. New #update_column method."Sebastian Martinez2011-03-272-10/+11
| |/ | | | | | | | | | | This reverts commit 45c233ef819dc7b67e259dd73f24721fec28b8c8. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
| * Removed #update_attribute method. New #update_column method.Sebastian Martinez2011-03-262-11/+10
| | | | | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
| * removes unnecessary selfs, and mentions that first! and last! take no ↵Xavier Noria2011-03-261-4/+6
| | | | | | | | arguments in their API docs
| * No arguments for first! and last!Pratik Naik2011-03-251-4/+4
| |
| * comment typo fixJosh Susser2011-03-251-2/+2
| |
* | Use Arel to build subquery. Adapt tests to changed fixtures.John Mileham2011-03-241-13/+12
| |
* | Merge branch 'master' of github.com:rails/rails into count_behaviorJohn Mileham2011-03-2441-503/+692
|\|
| * add #first! and #last! to models & relationsJosh Susser2011-03-241-0/+10
| |
| * Fix before_type_cast for timezone aware attributes by caching converted ↵Adam Meehan2011-03-231-4/+5
| | | | | | | | value on write. Also remove read method reload arg on timezone attributes.
| * Make clearing of HABTM join table contents happen in an after_destory callback.Murray Steele2011-03-231-12/+12
| | | | | | | | The old method of redefining destroy meant that clearing the HABTM join table would happen as long as the call to destroy succeeded. Which meant if there was a before_destroy that stopped the instance being destroyed using normal means (returning false, raising ActiveRecord::Rollback) rather than exceptional means the join table would be cleared even though the instance wasn't destroyed. Doing it in an after_destroy hook avoids this and has the advantage of happening inside the DB transaction too.
| * Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-03-232-4/+2
| |\
| | * remove bank linePaco Guzman2011-03-181-1/+0
| | |
| | * Remove incorrect comment that a default value of NULL cannot be set with ↵Manuel Meurer2011-03-161-3/+2
| | | | | | | | | | | | change_column_default.