aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
Commit message (Collapse)AuthorAgeFilesLines
* stop using deprecated methods in arelAaron Patterson2011-04-111-2/+2
|
* Change Object#either? to Object#among? -- thanks to @jamesarosen for the ↵David Heinemeier Hansson2011-04-1211-11/+11
| | | | suggestion!
* remove so many nested if statementsAaron Patterson2011-04-111-9/+11
|
* wrap the pg_get_serial_sequence function and reuse it for the default ↵Aaron Patterson2011-04-112-2/+35
| | | | sequence name
* cache table exists queries in prepared statement cacheAaron Patterson2011-04-111-3/+6
|
* only use the primary_key method, refactor schema and table name parsingAaron Patterson2011-04-111-13/+15
|
* use prepared statements for primary key queriesAaron Patterson2011-04-111-2/+15
|
* last insert id can never be called, so remove that code pathAaron Patterson2011-04-111-11/+3
|
* we know the table and pk, so we can calculate a default sequence nameAaron Patterson2011-04-111-3/+4
|
* always look up pk and sequence unless both are providedAaron Patterson2011-04-111-6/+5
|
* pg does not know the insert_id in advance, so super will never return trueAaron Patterson2011-04-111-13/+10
|
* updating the docco for ActiveRecord::ResultAaron Patterson2011-04-111-2/+2
|
* implement exec_query on mysql2 adapterAaron Patterson2011-04-111-2/+20
|
* make sqlite insert_sql more consistent with other adaptersAaron Patterson2011-04-111-1/+2
|
* adding exec_insert for postgresqlAaron Patterson2011-04-113-1/+43
|
* fixing variable name in mysql testAaron Patterson2011-04-111-1/+1
|
* properly name schema queries for the loggerAaron Patterson2011-04-111-10/+10
|
* adding mysql adapter test caseAaron Patterson2011-04-111-0/+69
|
* 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-112-0/+16
|
* 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
|
* adding pg support notes to the changelogAaron Patterson2011-04-101-0/+2
|
* 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-1113-15/+33
| | | | 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
|
* moving sqlite_adapter_tests to sqlite3_adapter_test so that the tests are ↵Aaron Patterson2011-04-082-229/+215
| | | | actually run. :bomb:
* Disable IdentityMap in log tests, it's not important and when running tests ↵Emilio Tagua2011-04-051-0/+3
| | | | | | rake task it logs more messages in the tested buffer. Signed-off-by: José Valim <jose.valim@gmail.com>
* Destroying records via nested attributes works independent of reject_if:Durran Jordan2011-04-052-0/+9
| | | | | | | | | | - 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-042-1/+17
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Use IM when trying to load records using ID.Emilio Tagua2011-04-046-9/+29
| | | | 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
* | Gem::Specification#has_rdoc= is deprecated since rubygems 1.7.0Santiago Pastorino2011-04-021-1/+0
| |
* | TableAlias leg ordering has changed, so change accordinglyAaron Patterson2011-03-301-1/+1
| |
* | test against AR class rather than the relation (thanks Andrew White!)Aaron Patterson2011-03-291-2/+2
| |
* | Merge branch 'master' into zomgAaron Patterson2011-03-2935-70/+456
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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: ...
| * | order is not guaranteed by this select, so add an order and call first!Aaron Patterson2011-03-291-1/+1
| | |
| * | oracle stores this with microseconds, so convert to seconds before comparingAaron Patterson2011-03-291-1/+1
| | |
| * | make sure that active connections are not cleared during test when an ↵Aaron Patterson2011-03-292-2/+12
| | | | | | | | | | | | exception happens
| * | clearing active connections in the ConnectionManagement middleware if an ↵Aaron Patterson2011-03-292-0/+10
| | | | | | | | | | | | exception happens