aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
Commit message (Collapse)AuthorAgeFilesLines
* inserting big decimals as strings works consistently among dbs, so use ↵Aaron Patterson2011-04-141-1/+1
| | | | string form
* insert statements are prepared, but values are not escaped properlyAaron Patterson2011-04-145-8/+64
|
* adding a type cast method for prepared statementsAaron Patterson2011-04-142-1/+37
|
* Extract the constraint-building for joins in JoinAssociation into a separate ↵Jon Leighton2011-04-141-8/+14
| | | | method to make it easy to change/override (requested by Ernie Miller so that MetaWhere can add to it easily)
* Fixes performance issue introduced in 3.0.6 (issue #6695)Stian Grytøyr2011-04-141-3/+5
|
* do not depend on to_yaml being called, but rather depend on YAML being dumpedAaron Patterson2011-04-131-1/+1
|
* use index based substitution for bind parametersAaron Patterson2011-04-133-4/+4
|
* Remove `#among?` from Active SupportPrem Sichanugrist2011-04-139-9/+9
| | | | | | After a long list of discussion about the performance problem from using varargs and the reason that we can't find a great pair for it, it would be best to remove support for it for now. It will come back if we can find a good pair for it. For now, Bon Voyage, `#among?`.
* Deprecate defining scopes with a callable (lambda, proc, etc) via the scope ↵Jon Leighton2011-04-121-2/+60
| | | | class method. Just define a class method yourself instead.
* ActiveRecord::Base.scopes hash is not neededJon Leighton2011-04-122-18/+4
|
* Evaluate default scopes at the last possible moment in order to avoid ↵Jon Leighton2011-04-125-16/+40
| | | | problems with default scopes getting included into other scopes and then being unable to remove the default part via unscoped.
* Deprecated support for passing hashes and relations to default_scope, in ↵Jon Leighton2011-04-123-58/+95
| | | | favour of defining a 'default_scope' class method in the model. See the CHANGELOG for more details.
* Removing the scope-caching which happens on association proxies, because the ↵Jon Leighton2011-04-122-14/+0
| | | | query is already cached by the query cacher. For formalised proof see http://www.youtube.com/watch?v=wDefXLb-FDs
* 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-129-9/+9
| | | | 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-111-2/+10
| | | | 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-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