Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | use an array for bind params to simplify substitution | Aaron Patterson | 2014-04-12 | 3 | -19/+19 |
| | |||||
* | propogate bind values collected in arel to SQL generation | Aaron Patterson | 2014-04-11 | 3 | -1/+12 |
| | |||||
* | decouple the factory method from the constructing model | Aaron Patterson | 2014-04-10 | 3 | -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#initialize | Aaron Patterson | 2014-04-10 | 3 | -16/+18 |
| | |||||
* | stop caching the class on the statement cache object | Aaron Patterson | 2014-04-10 | 3 | -15/+15 |
| | |||||
* | fix ivar names and add reader methods | Aaron Patterson | 2014-04-10 | 1 | -7/+6 |
| | |||||
* | eagerly build the cacheable query builder | Aaron Patterson | 2014-04-10 | 1 | -13/+7 |
| | |||||
* | eagerly build the bind map | Aaron Patterson | 2014-04-10 | 1 | -8/+5 |
| | |||||
* | eagerly build the relation object | Aaron Patterson | 2014-04-10 | 1 | -8/+2 |
| | |||||
* | remove dead code | Aaron Patterson | 2014-04-10 | 1 | -7/+0 |
| | |||||
* | speed up parameter substitution | Aaron Patterson | 2014-04-09 | 1 | -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 statements | Aaron Patterson | 2014-04-09 | 1 | -1/+0 |
| | |||||
* | oops! Fix Gemfile. :bomb: | Aaron Patterson | 2014-04-09 | 1 | -1/+2 |
| | |||||
* | Merge branch 'master' into adequaterecord | Aaron Patterson | 2014-04-09 | 3 | -3/+4 |
|\ | | | | | | | | | | | * master: add services: memcache to travis The `source` option for `has_many => through` should accept String values. | ||||
| * | Merge pull request #14671 from arthurnn/travis_memcache | Rafael Mendonça França | 2014-04-09 | 1 | -0/+1 |
| |\ | | | | | | | add services: memcache to travis | ||||
| | * | add services: memcache to travis | Arthur Neves | 2014-04-09 | 1 | -0/+1 |
| |/ | |||||
| * | Merge pull request #14668 from laurocaetano/source_option_with_string_value | Aaron Patterson | 2014-04-09 | 2 | -3/+3 |
| |\ | | | | | | | The :source option for has_many => through should accept String values. | ||||
| | * | The `source` option for `has_many => through` should accept String | Lauro Caetano | 2014-04-09 | 2 | -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 values | Aaron Patterson | 2014-04-09 | 2 | -9/+5 |
| | | |||||
* | | push the collectors up to the abstract adapter | Aaron Patterson | 2014-04-09 | 3 | -40/+22 |
| | | |||||
* | | sqlite3 tests passing again | Aaron Patterson | 2014-04-09 | 1 | -7/+8 |
| | | |||||
* | | mysql tests are passing again | Aaron Patterson | 2014-04-09 | 1 | -1/+7 |
| | | |||||
* | | all tests passing on mysql2 | Aaron Patterson | 2014-04-09 | 2 | -4/+3 |
| | | |||||
* | | working against arel/collector branch | Aaron Patterson | 2014-04-09 | 4 | -19/+12 |
| | | |||||
* | | fix bind collecting for mysql | Aaron Patterson | 2014-04-09 | 3 | -4/+22 |
| | | |||||
* | | add a bind collector, remove the bind visitor | Aaron Patterson | 2014-04-09 | 3 | -15/+24 |
| | | |||||
* | | remove the bind substitution visitor. to_sql should never return bind values | Aaron Patterson | 2014-04-09 | 3 | -12/+7 |
| | | |||||
* | | use the compile method so we do not have to specify the collectors in this case | Aaron Patterson | 2014-04-09 | 2 | -4/+2 |
| | | |||||
* | | Merge branch 'master' into adequaterecord | Aaron Patterson | 2014-04-09 | 33 | -164/+377 |
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 | ||||
| * | Merge pull request #14665 from andrielfn/avoid-uri-parsing | Rafael Mendonça França | 2014-04-09 | 2 | -5/+15 |
| |\ | | | | | | | Avoid URI parsing | ||||
| | * | Avoid URI parsing | Andriel Nuernberg | 2014-04-09 | 2 | -5/+15 |
| | | | | | | | | | | | | | | | This parsing is unecessary once the Request object already has the needed information. | ||||
| * | | Merge pull request #14667 from lucasmazza/require-per-thread-registry | Rafael Mendonça França | 2014-04-09 | 1 | -0/+1 |
| |\ \ | | | | | | | | | Add missing require so requiring `active_support/cache` works again. | ||||
| | * | | Add missing require so requiring `active_support/cache` works again. | Lucas Mazza | 2014-04-09 | 1 | -0/+1 |
| | |/ | |||||
| * / | depend_on_asset is not required anymore on sprockets-rails 2.1.2 | Rafael Mendonça França | 2014-04-09 | 3 | -25/+11 |
| |/ | |||||
| * | Merge pull request #14654 from Alamoz/secret_key | Rafael Mendonça França | 2014-04-09 | 1 | -4/+7 |
| |\ | | | | | | | Expand explanation of how to set secrets.yml. | ||||
| | * | Expand explanation of how to set secrets.yml. [ci skip] | Adrien Lamothe | 2014-04-08 | 1 | -4/+7 |
| | | | |||||
| * | | upgrading section for 4.1 is no longer WIP. [ci skip] | Yves Senn | 2014-04-09 | 1 | -2/+0 |
| | | | |||||
| * | | Merge pull request #14653 from vdmgolub/patch-1 | Arun Agrawal | 2014-04-09 | 1 | -1/+1 |
| |\ \ | | | | | | | | | Guides: minor typo fixed in Asset Pipeline guide | ||||
| | * | | Guides: minor typo fixed [ci skip] | Vadim Golub | 2014-04-09 | 1 | -1/+1 |
| | |/ | |||||
| * | | Merge pull request #14652 from Emily/duration_eqls | Guillermo Iguaran | 2014-04-08 | 3 | -0/+45 |
| |\ \ | | |/ | |/| | Fixed problem where `1.day.eql?(1.day)` is false | ||||
| | * | Fixed problem where `1.day.eql?(1.day)` is false | Emily Dobervich | 2014-04-08 | 3 | -0/+45 |
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes: 1.second.eql?(1.second) #=> false The new `eql?` requires that `other` is an `ActiveSupport::Duration`. This requirement makes `ActiveSupport::Duration`'s behavior consistent with other numeric types in Ruby. 1.eql?(1.0) #=> false 1.0.eql?(1) #=> false 1.second.eql?(1) #=> false (was true) 1.eql?(1.second) #=> false { 1 => "foo", 1.0 => "bar" } #=> { 1 => "foo", 1.0 => "bar" } { 1 => "foo", 1.second => "bar" } # now => { 1 => "foo", 1.second => "bar" } # was => { 1 => "bar" } And though the behavior here hasn't changed, for reference: 1 == 1.0 #=> true 1.0 == 1 #=> true 1 == 1.second #=> true 1.second == 1 #=> true | ||||
| * | new CHANGELOGs entries are in the top [ci skip] | Rafael Mendonça França | 2014-04-08 | 1 | -4/+4 |
| | | |||||
| * | Merge pull request #14647 from matiaskorhonen/updates-maintenance-policy | Rafael Mendonça França | 2014-04-08 | 2 | -3/+7 |
| |\ | | | | | | | Updates the maintenance policy with new Rails versions | ||||
| | * | Updates the maintenance policy with new Rails versions | Matias Korhonen | 2014-04-08 | 2 | -3/+7 |
| |/ | |||||
| * | Dont abbreviate that which needs no abbreviation | David Heinemeier Hansson | 2014-04-08 | 1 | -2/+2 |
| | | |||||
| * | Dont encourage aliases now that we have variants | David Heinemeier Hansson | 2014-04-08 | 1 | -1/+0 |
| | | |||||
| * | Use short-form for the scaffold render calls and drop the needless test | David Heinemeier Hansson | 2014-04-08 | 2 | -9/+2 |
| | | |||||
| * | Merge pull request #14633 from matthewd/narrow_database_url | Rafael Mendonça França | 2014-04-08 | 14 | -101/+251 |
| |\ | | | | | | | Only apply DATABASE_URL for Rails.env | ||||
| | * | Drop in @jeremy's new database.yml template text | Matthew Draper | 2014-04-09 | 13 | -44/+206 |
| | | | | | | | | | | | | | | | In passing, allow multi-word adapters to be referenced in a URL: underscored_name must become hyphened-name. | ||||
| | * | Don't deprecate after all | Matthew Draper | 2014-04-09 | 2 | -27/+11 |
| | | |