Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | ActiveRecord::Base.scopes hash is not needed | Jon Leighton | 2011-04-12 | 2 | -18/+4 | |
| | ||||||
* | Evaluate default scopes at the last possible moment in order to avoid ↵ | Jon Leighton | 2011-04-12 | 5 | -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 Leighton | 2011-04-12 | 3 | -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 Leighton | 2011-04-12 | 2 | -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 arel | Aaron Patterson | 2011-04-11 | 1 | -2/+2 | |
| | ||||||
* | Change Object#either? to Object#among? -- thanks to @jamesarosen for the ↵ | David Heinemeier Hansson | 2011-04-12 | 8 | -8/+8 | |
| | | | | suggestion! | |||||
* | remove so many nested if statements | Aaron Patterson | 2011-04-11 | 1 | -9/+11 | |
| | ||||||
* | wrap the pg_get_serial_sequence function and reuse it for the default ↵ | Aaron Patterson | 2011-04-11 | 1 | -2/+10 | |
| | | | | sequence name | |||||
* | cache table exists queries in prepared statement cache | Aaron Patterson | 2011-04-11 | 1 | -3/+6 | |
| | ||||||
* | only use the primary_key method, refactor schema and table name parsing | Aaron Patterson | 2011-04-11 | 1 | -13/+15 | |
| | ||||||
* | use prepared statements for primary key queries | Aaron Patterson | 2011-04-11 | 1 | -2/+15 | |
| | ||||||
* | last insert id can never be called, so remove that code path | Aaron Patterson | 2011-04-11 | 1 | -11/+3 | |
| | ||||||
* | we know the table and pk, so we can calculate a default sequence name | Aaron Patterson | 2011-04-11 | 1 | -3/+4 | |
| | ||||||
* | always look up pk and sequence unless both are provided | Aaron Patterson | 2011-04-11 | 1 | -6/+5 | |
| | ||||||
* | pg does not know the insert_id in advance, so super will never return true | Aaron Patterson | 2011-04-11 | 1 | -13/+10 | |
| | ||||||
* | updating the docco for ActiveRecord::Result | Aaron Patterson | 2011-04-11 | 1 | -2/+2 | |
| | ||||||
* | implement exec_query on mysql2 adapter | Aaron Patterson | 2011-04-11 | 1 | -2/+20 | |
| | ||||||
* | make sqlite insert_sql more consistent with other adapters | Aaron Patterson | 2011-04-11 | 1 | -1/+2 | |
| | ||||||
* | adding exec_insert for postgresql | Aaron Patterson | 2011-04-11 | 1 | -0/+4 | |
| | ||||||
* | properly name schema queries for the logger | Aaron Patterson | 2011-04-11 | 1 | -10/+10 | |
| | ||||||
* | adding client_encoding method for discovering the encoding set for this ↵ | Aaron Patterson | 2011-04-11 | 1 | -0/+62 | |
| | | | | client, testing exec_insert on a string | |||||
* | properly name schema queries for logging | Aaron Patterson | 2011-04-11 | 1 | -3/+3 | |
| | ||||||
* | adding exec_insert to sqlite3 | Aaron Patterson | 2011-04-11 | 1 | -0/+4 | |
| | ||||||
* | adding a case_sensitive_modifier for forcing comparisons to be case sensitive | Aaron Patterson | 2011-04-11 | 4 | -0/+15 | |
| | ||||||
* | only support pg >= 8.2, so no need to check | Aaron Patterson | 2011-04-11 | 1 | -7/+4 | |
| | ||||||
* | pg should define insert_sql so that query cache actually works for inserts | Aaron Patterson | 2011-04-10 | 1 | -2/+1 | |
| | ||||||
* | community support for pg < 8.2 has ended, so we can drop support for those ↵ | Aaron Patterson | 2011-04-10 | 1 | -62/+12 | |
| | | | | versions | |||||
* | Refactored uniqueness validator to use Arel instead of hardcoded SQL | Brian Cardarella | 2011-04-10 | 1 | -26/+11 | |
| | ||||||
* | Using Object#in? and Object#either? in various places | Prem Sichanugrist | 2011-04-11 | 8 | -8/+21 | |
| | | | | 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é Valim | 2011-04-10 | 1 | -6/+0 | |
| | ||||||
* | Destroying records via nested attributes works independent of reject_if: | Durran Jordan | 2011-04-05 | 1 | -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 Tagua | 2011-04-04 | 1 | -1/+8 | |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Use IM when trying to load records using ID. | Emilio Tagua | 2011-04-04 | 3 | -0/+13 | |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-04-03 | 3 | -3/+44 | |
|\ | ||||||
| * | s/ERb/ERB/g | Akira Matsuda | 2011-04-03 | 1 | -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 map | Ryan Bigg | 2011-03-31 | 1 | -1/+1 | |
| | | ||||||
| * | Cleanup of named_scope documentation | Ryan Bigg | 2011-03-31 | 1 | -8/+9 | |
| | | ||||||
| * | Fix typo in named_scope documentation | Ryan Bigg | 2011-03-31 | 1 | -1/+1 | |
| | | ||||||
| * | add space to conform with style | Eadz | 2011-03-31 | 1 | -1/+1 | |
| | | ||||||
| * | Documented undocumented feature: Class methods on your model are ↵ | Eadz | 2011-03-31 | 1 | -0/+22 | |
| | | | | | | | | automatically available on scopes | |||||
| * | Added back the Callback debugging section by interrogating the _*_callbacks ↵ | ozzyaaron | 2011-03-29 | 1 | -0/+18 | |
| | | | | | | | | method | |||||
* | | TableAlias leg ordering has changed, so change accordingly | Aaron Patterson | 2011-03-30 | 1 | -1/+1 | |
| | | ||||||
* | | Merge branch 'master' into zomg | Aaron Patterson | 2011-03-29 | 12 | -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 Patterson | 2011-03-29 | 1 | -2/+4 | |
| | | | | | | | | | | | | exception happens | |||||
| * | | clearing active connections in the ConnectionManagement middleware if an ↵ | Aaron Patterson | 2011-03-29 | 1 | -0/+3 | |
| | | | | | | | | | | | | exception happens | |||||
| * | | proxy body responses so we close database connections after body is flushed | Aaron Patterson | 2011-03-29 | 1 | -7/+24 | |
| | | | ||||||
| * | | Quote find_in_batches ORDER BY clause [#6620 state:resolved] | Andrew White | 2011-03-29 | 3 | -3/+14 | |
| | | | ||||||
| * | | Delegate first!, last!, any? and many? to scoped | Andrew White | 2011-03-29 | 1 | -1/+2 | |
| | | | ||||||
| * | | Change exists? so that it doesn't instantiate records [#6127 state:resolved] | Andrew White | 2011-03-29 | 1 | -4/+10 | |
| | | | ||||||
| * | | make sure we have an active database connection before running each ↵ | Aaron Patterson | 2011-03-28 | 1 | -1/+5 | |
| | | | | | | | | | | | | connection management test |