aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' into instance_readerAaron Patterson2012-02-105-5/+27
|\ | | | | | | | | | | | | | | | | * master: Fix GH #4720. Routing problem with nested namespace and already camelized controller option. make Range#overlaps? accept Range of Time improved test case for partial indices Made schema dumper recognize partial indices' where statements Added where option to add_index to support postgresql partial indices
| * Merge pull request #4956 from mhfs/pg_partial_indicesAaron Patterson2012-02-105-5/+27
| |\ | | | | | | Add support for partial indices to PostgreSQL adapter
| | * Made schema dumper recognize partial indices' where statementsMarcelo Silveira2012-02-093-2/+5
| | |
| | * Added where option to add_index to support postgresql partial indicesMarcelo Silveira2012-02-093-3/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `add_index` method now supports a `where` option that receives a string with the partial index criteria. add_index(:accounts, :code, :where => "active") Generates CREATE INDEX index_accounts_on_code ON accounts(code) WHERE active
* | | fixing indentation, moving class methods togetherAaron Patterson2012-02-091-124/+124
| | |
* | | removing dead codeAaron Patterson2012-02-094-29/+0
| | |
* | | typecast columns based on the returned typesAaron Patterson2012-02-091-2/+14
| | |
* | | Merge branch 'master' into instance_readerAaron Patterson2012-02-095-5/+17
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (30 commits) Bump tzinfo. 0.3.31 was released on November 6, 2011. Fix GH #4909. Dependency on TZInfo move from AR to AS. moving ordered hash to normal hash because ruby 1.9.3 hash defaultly ordered one Refactored the OrderedHash related stuff Replaced OrderedHash usage with Ruby 1.9 Hash Replaced OrderedHash with Hash for ruby 1.9 series removed unnecessary code replacing the orderhash with hash for ruby-1.9 Clean up some wording. Fix typo. test title changed corresponding to the test replaced active support ordered hash to ruby hash on active resource PostgreSQL does not work in the same way of the other adapters AR::Relation#pluck: improve to work with joins Fix match docs Fix attribute_before_type_cast for serialized attributes. Fixes #4837. Fix failing request test Fixes in AMo README Update README to mention lint. Trim down Active Model API by removing valid? and errors.full_messages ...
| * | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-02-092-3/+3
| |\ \ | | | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/relation/query_methods.rb
| | * | Correcting ActiveRecord::Core#encode_with docsJosef Šimánek2012-02-071-1/+1
| | | |
| | * | use appropriate words for docs of Model.noneRohit Arondekar2012-02-071-2/+2
| | | |
| | * | minor tidy up of none relation query methodRohit Arondekar2012-02-061-2/+2
| | | |
| | * | Fix code example in ActiveRecord::Relation#noneCarlos Antonio da Silva2012-02-011-3/+3
| | | |
| * | | Refactored the OrderedHash related stuffRaghunadh2012-02-091-2/+1
| | | |
| * | | AR::Relation#pluck: improve to work with joinsBogdan Gusiev2012-02-081-0/+3
| | | |
| * | | Fix attribute_before_type_cast for serialized attributes. Fixes #4837.Jon Leighton2012-02-072-0/+10
| | | |
* | | | only exclude serialized columns from cacheable columnsAaron Patterson2012-02-091-1/+5
| | | |
* | | | removed unnecessary translator objectAaron Patterson2012-02-082-44/+0
| | | |
* | | | use the key name yielded to the fetch blockAaron Patterson2012-02-081-9/+7
| | | |
* | | | return early if the cast attribute has been cachedAaron Patterson2012-02-081-11/+16
| | | |
* | | | always call `read_attribute` from the reader methodAaron Patterson2012-02-081-14/+12
| | | |
* | | | use the pg column to cast valuesAaron Patterson2012-02-081-1/+1
| | | |
* | | | cache attribute if it is supposed to be cachedAaron Patterson2012-02-071-1/+5
| | | |
* | | | only unescape bytea after it has been read from the databaseAaron Patterson2012-02-072-6/+4
| | | |
* | | | pgcolumn knows how to typecast binary columnsAaron Patterson2012-02-071-0/+6
| | | |
* | | | give each PG type a `type` method and decortate tz attributesAaron Patterson2012-02-075-18/+60
| | | |
* | | | hstores can be typecastAaron Patterson2012-02-071-0/+10
| | | |
* | | | columns are lazily typecast, so no more calls to `result_as_array`Aaron Patterson2012-02-071-1/+1
| | | |
* | | | taking column width in to account when fetching decimal fieldsAaron Patterson2012-02-072-2/+42
| | | |
* | | | return early from typecasting if the value is nilAaron Patterson2012-02-071-1/+15
| | | |
* | | | mapping more oidsAaron Patterson2012-02-071-1/+7
| | | |
* | | | many of the OIDs mapped and implementedAaron Patterson2012-02-072-1/+164
| | | |
* | | | moving column types to an ivar on the resultAaron Patterson2012-02-072-9/+10
| | | |
* | | | copy over columns hash on reloadAaron Patterson2012-02-071-0/+1
| | | |
* | | | wrap and cache columns for typecastingAaron Patterson2012-02-073-5/+30
| | | |
* | | | column types are passed from the result set to the instantiated AR objectAaron Patterson2012-02-074-5/+20
| | | |
* | | | moved attribute translation to an objectAaron Patterson2012-02-072-16/+38
| | | |
* | | | moved most of the evald code in to regular ruby codeAaron Patterson2012-02-073-17/+32
| | | |
* | | | copy the columns hash to the active record instances, typecast using columns ↵Aaron Patterson2012-02-074-36/+66
|/ / / | | | | | | | | | looked up on the instance
* | / no need to check for this constantXavier Noria2012-02-071-1/+1
| |/ |/|
* | Fixed the documenation for 'to_xml'Markus Fenske2012-02-071-1/+2
| |
* | adding a comment for myselfAaron Patterson2012-02-062-8/+9
| |
* | delegate attribute typecasting to the columnAaron Patterson2012-02-062-16/+17
| |
* | pg supports real booleans, so handle the case when `true` is returnedAaron Patterson2012-02-061-2/+5
| |
* | let automatic EXPLAIN ignore CACHE notificationsXavier Noria2012-02-031-1/+4
| |
* | prevents the database.yml template option from being passed to PGConnSean Kirby2012-02-061-1/+1
| |
* | allow mass-assign version attribute in AR::SchemaMigrationSergey Nartimov2012-02-061-0/+2
| |
* | Get ActiveRecord::TestCase back on its feet, despite deprecation. It ↵Jeremy Kemper2012-02-051-1/+61
| | | | | | | | requires SQLCounter which was moved to AR internal tests only.
* | Merge pull request #4856 from ihid/store_null_bugAaron Patterson2012-02-021-0/+2
|\ \ | | | | | | Allow store to be a not null column.
| * | Allow store to be a not null column.Jeremy Walker2012-02-021-0/+2
| | |