aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | New CHANGELOG entries are in to top of fileRafael Mendonça França2014-04-111-7/+7
| | | | | | |
| * | | | | | :scissors:Rafael Mendonça França2014-04-113-7/+7
| | | | | | |
| * | | | | | Merge pull request #14711 from ↵Rafael Mendonça França2014-04-115-3/+35
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | swoker/activerecord_fix_aggregate_methods_with_select Activerecord fix aggregate methods with select
| | * | | | | | fix exception on polymorphic associations with predicatesSimon Woker2014-04-112-0/+16
| | | | | | | |
| | * | | | | | Fix error for aggregate methods with select, see issue #13648Simon Woker2014-04-103-3/+19
| | | | | | | |
| * | | | | | | PostgreSQL, warn once per connection per missing OID. Closes #14275.Yves Senn2014-04-113-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [Yves Senn & Matthew Draper]
| * | | | | | | PostgreSQL, adapter automatically reloads it's type map. Closes #14678.Yves Senn2014-04-118-16/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [Yves Senn & Matthew Draper]
| * | | | | | | docs, make association `autosave: true` examples runnable. Closes #14700Yves Senn2014-04-111-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ci skip] The examples are written in a way you expect them to be executable. However one snippet assumed there to be two comments when only one was created above. The defined models did not extend `ActiveRecord::Base` The example used `comments.last.mark_for_destruction`. This does no longer load the whole collection but just the last record. It is then refetcht on subsequent calls to `last`. This breaks the example.
| * | | | | | | Merge pull request #12829 from iantropov/issue_insert_via_hmt_scope_3548Rafael Mendonça França2014-04-106-4/+32
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix insertion of records for hmt association with scope Conflicts: activerecord/CHANGELOG.md
| | * | | | | | | Fix insertion of records for hmt association with scope, fix #3548Ivan Antropov2013-11-176-4/+32
| | | | | | | | |
| * | | | | | | | Remove warning of unused variableRafael Mendonça França2014-04-101-1/+1
| | | | | | | | |
| * | | | | | | | No need to call sendRafael Mendonça França2014-04-101-1/+1
| | | | | | | | |
| * | | | | | | | Merge branch 'master' into rm-uuid-fixturesRafael Mendonça França2014-04-1036-115/+266
| |\ \ \ \ \ \ \ \ | | | |/ / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/CHANGELOG.md activesupport/CHANGELOG.md
| | * | | | | | | Only call uniq on the conditional that actually needs itCarlos Antonio da Silva2014-04-091-1/+1
| | | | | | | | |
| | * | | | | | | Remove extra collect callCarlos Antonio da Silva2014-04-091-1/+1
| | | | | | | | |
| | * | | | | | | Make sure the reflection test is passing a String to the reflectionLauro Caetano2014-04-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cache.
| | * | | | | | | Make the aggregate_reflections cache work with strings as its keys.Lauro Caetano2014-04-091-2/+2
| | | | | | | | |
| | * | | | | | | No need to call `to_sym` on reflection name, since the cache now worksLauro Caetano2014-04-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with strings with string keys. Related #14668.
| | * | | | | | | Make the reflections cache work with strings as its keys.Lauro Caetano2014-04-091-2/+2
| | | | | | | | |
| * | | | | | | | Merge pull request #12016 from roderickvd/uuid_fixesRafael Mendonça França2014-04-0410-10/+69
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generate stable fixture UUIDs on PostgreSQL Conflicts: activerecord/CHANGELOG.md activerecord/lib/active_record/fixtures.rb activerecord/test/cases/adapters/postgresql/uuid_test.rb activesupport/CHANGELOG.md
| | * | | | | | | | Auto-generate stable fixture UUIDs on PostgreSQL.Roderick van Domburg2014-01-0711-17/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #11524
* | | | | | | | | | use an array for bind params to simplify substitutionAaron Patterson2014-04-123-19/+19
| | | | | | | | | |
* | | | | | | | | | propogate bind values collected in arel to SQL generationAaron Patterson2014-04-113-1/+12
| | | | | | | | | |
* | | | | | | | | | decouple the factory method from the constructing modelAaron Patterson2014-04-103-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The factory method only requires the constructing model to get the connection object. Since the model is available when calling the factory method, we can just pass the appropriate connection in.
* | | | | | | | | | remove intelligence from StatementCache#initializeAaron Patterson2014-04-103-16/+18
| | | | | | | | | |
* | | | | | | | | | stop caching the class on the statement cache objectAaron Patterson2014-04-103-15/+15
| | | | | | | | | |
* | | | | | | | | | fix ivar names and add reader methodsAaron Patterson2014-04-101-7/+6
| | | | | | | | | |
* | | | | | | | | | eagerly build the cacheable query builderAaron Patterson2014-04-101-13/+7
| | | | | | | | | |
* | | | | | | | | | eagerly build the bind mapAaron Patterson2014-04-101-8/+5
| | | | | | | | | |
* | | | | | | | | | eagerly build the relation objectAaron Patterson2014-04-101-8/+2
| | | | | | | | | |
* | | | | | | | | | remove dead codeAaron Patterson2014-04-101-7/+0
| | | | | | | | | |
* | | | | | | | | | speed up parameter substitutionAaron Patterson2014-04-091-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | store the offsets of the bind values, then only index to bind value locations before joining the array
* | | | | | | | | | tests still pass when caching unprepared statementsAaron Patterson2014-04-091-1/+0
| | | | | | | | | |
* | | | | | | | | | Merge branch 'master' into adequaterecordAaron Patterson2014-04-092-3/+3
|\ \ \ \ \ \ \ \ \ \ | | |_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: add services: memcache to travis The `source` option for `has_many => through` should accept String values.
| * | | | | | | | | The `source` option for `has_many => through` should accept StringLauro Caetano2014-04-092-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | values. With the changes introduced by 16b70fddd4dc7e7fb7be108add88bae6e3c2509b it was expecting the value to be a Symbol, while it could be also a String value.
* | | | | | | | | | remove the bind visitor since the collector handles substituting bind valuesAaron Patterson2014-04-092-9/+5
| | | | | | | | | |
* | | | | | | | | | push the collectors up to the abstract adapterAaron Patterson2014-04-093-40/+22
| | | | | | | | | |
* | | | | | | | | | sqlite3 tests passing againAaron Patterson2014-04-091-7/+8
| | | | | | | | | |
* | | | | | | | | | mysql tests are passing againAaron Patterson2014-04-091-1/+7
| | | | | | | | | |
* | | | | | | | | | all tests passing on mysql2Aaron Patterson2014-04-092-4/+3
| | | | | | | | | |
* | | | | | | | | | working against arel/collector branchAaron Patterson2014-04-094-19/+12
| | | | | | | | | |
* | | | | | | | | | fix bind collecting for mysqlAaron Patterson2014-04-092-3/+22
| | | | | | | | | |
* | | | | | | | | | add a bind collector, remove the bind visitorAaron Patterson2014-04-093-15/+24
| | | | | | | | | |
* | | | | | | | | | remove the bind substitution visitor. to_sql should never return bind valuesAaron Patterson2014-04-093-12/+7
| | | | | | | | | |
* | | | | | | | | | use the compile method so we do not have to specify the collectors in this caseAaron Patterson2014-04-092-4/+2
| | | | | | | | | |
* | | | | | | | | | Merge branch 'master' into adequaterecordAaron Patterson2014-04-096-69/+89
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (26 commits) Avoid URI parsing Add missing require so requiring `active_support/cache` works again. depend_on_asset is not required anymore on sprockets-rails 2.1.2 upgrading section for 4.1 is no longer WIP. [ci skip] Expand explanation of how to set secrets.yml. [ci skip] Guides: minor typo fixed [ci skip] Fixed problem where `1.day.eql?(1.day)` is false new CHANGELOGs entries are in the top [ci skip] Updates the maintenance policy with new Rails versions Dont abbreviate that which needs no abbreviation Dont encourage aliases now that we have variants Use short-form for the scaffold render calls and drop the needless test Drop in @jeremy's new database.yml template text Don't deprecate after all Less ambition, more deprecation Ensure we correctly and immediately load all ENV entries Give a deprecation message even when the lookup fails Rearrange the config merger some more entry is always a Hash Check env_url only once ... Conflicts: Gemfile
| * | | | | | | | | Drop in @jeremy's new database.yml template textMatthew Draper2014-04-092-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In passing, allow multi-word adapters to be referenced in a URL: underscored_name must become hyphened-name.
| * | | | | | | | | Don't deprecate after allMatthew Draper2014-04-092-27/+11
| | | | | | | | | |
| * | | | | | | | | Less ambition, more deprecationMatthew Draper2014-04-092-75/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "DATABASE_URL_*" idea was moving in the wrong direction. Instead, let's deprecate the situation where we end up using ENV['DATABASE_URL'] at all: the Right Way is to explicitly include it in database.yml with ERB.
| * | | | | | | | | Ensure we correctly and immediately load all ENV entriesMatthew Draper2014-04-081-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | .. even when the supplied config made no hint that name was relevant.