aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* remove dead testAaron Patterson2012-07-291-4/+0
|
* adding a buffered stream to the response objectAaron Patterson2012-07-294-3/+93
|
* initialize ivars, refactor recycle! to call initializeAaron Patterson2012-07-292-9/+3
|
* Remove warning renaming the test classes to use the test conventionRafael Mendonça França2012-07-292-2/+2
|
* Remove deprecation warning, since scoped waas deprecatedRafael Mendonça França2012-07-291-1/+1
|
* Merge pull request #7196 from ↵Aaron Patterson2012-07-291-1/+5
|\ | | | | | | | | rimidl/fix-incorrect-require-mysql-in-mysql_rake_test Fix incorrect usage `require mysql` in the activerecord/.../mysql_rake_test
| * fix incorrect usage `require mysql` in the ↵Vladimir Strakhov2012-07-291-1/+5
| | | | | | | | activerecord/test/.../mysql_rake_test.rb
* | Merge pull request #7188 from rodrigoflores/masterCarlos Antonio da Silva2012-07-291-1/+2
|\ \ | | | | | | Documentation Fix: Pointing the case when no dependent option is given to a association method
| * | Explaining a bit better about the default behaviour of dependentRodrigo Flores2012-07-281-1/+2
| | |
* | | Merge pull request #7192 from bogdan/sqlite_tests_fixCarlos Antonio da Silva2012-07-291-4/+4
|\ \ \ | | | | | | | | More polite cleanup for sqlite tests
| * | | More polite cleanup for sqlite testsBogdan Gusiev2012-07-291-4/+4
| | |/ | |/|
* | | Merge pull request #7194 from alexandrz/masterCarlos Antonio da Silva2012-07-291-6/+3
|\ \ \ | |/ / |/| | DRY class_attribute
| * | DRY class_attribute codeAleksandr Zykov2012-07-291-6/+3
|/ /
* | issue a warning when we cannot construct a controllerAaron Patterson2012-07-281-2/+10
| |
* | this test is not a controller test, so switch to AS::TCAaron Patterson2012-07-281-1/+1
|/
* removes the AR session store from eager loaded code [fixes #7160]Xavier Noria2012-07-291-1/+10
| | | | | See the comment in the file activerecord/lib/active_record.rb added by this patch for the rationale.
* Merge pull request #7186 from rimidl/fix-failure-test-in-actionpackRafael Mendonça França2012-07-281-2/+2
|\ | | | | Fix test_can_wait_until_commit(ResponseTest) in /actionpack/test/dispatch/response_test.rb
| * fix failure test 'test_can_wait_until_commit(ResponseTest)' in actionpackVladimir Strakhov2012-07-281-2/+2
| |
* | Merge pull request #7185 from route/reset_table_name_refactoringRafael Mendonça França2012-07-281-8/+4
|\ \ | |/ |/| Refactor to reset_table_name
| * Refactor to reset_table_nameDmitry Vorotilin2012-07-281-8/+4
| |
* | missing require: the AR session store depends on the AP abstract storeXavier Noria2012-07-281-0/+2
|/ | | | | | | | This require makes the dependency even more clear. In particular we are eager loading the session store but that does not work if AR is used outside Rails, this patch is preliminary work in fixing #7160.
* adds a missing require from Active SupportXavier Noria2012-07-281-0/+1
| | | | This file uses mattr_accessor.
* threads can wait on responses to be committedAaron Patterson2012-07-273-1/+34
|
* Revert "Removing composed_of from ActiveRecord."Rafael Mendonça França2012-07-2719-32/+790
| | | | | | | | | | | This reverts commit 14fc8b34521f8354a17e50cd11fa3f809e423592. Reason: we need to discuss a better path from this removal. Conflicts: activerecord/lib/active_record/reflection.rb activerecord/test/cases/base_test.rb activerecord/test/models/developer.rb
* Merge pull request #7182 from yahonda/address_7178Rafael Mendonça França2012-07-271-1/+1
|\ | | | | Modity the :json_data_empty attribute from `:null => false` to `:null => true`
| * Modity the :json_data_empty attribute from `:null => false` to `:null => true`Yasuo Honda2012-07-281-1/+1
| | | | | | | | | | | | | | to address ORA-01400 errors with Oracle enhanced adapter. The original commit 3c0bf043 requires :json_data_empty attribute has empty string OR null, then setting `:default => ""` is enough.
* | Merge pull request #7181 from jfirebaugh/rbxRafael Mendonça França2012-07-271-5/+1
|\ \ | |/ |/| Don't test language-level exception messages
| * Don't test language-level exception messagesJohn Firebaugh2012-07-271-5/+1
|/ | | | | | Ruby implementations should be free to produce exception messages that are not identical to MRI. For example, Rubinius produces 'Expected an even number, got 5'.
* Merge pull request #6827 from zephyr-dev/masterJosé Valim2012-07-275-0/+118
|\ | | | | Validates_presence_of associated object marked for destruction
| * AR has a subclass of AM:PresenceValidator.Brent Wheeldon & Nick Monje2012-07-205-0/+118
| | | | | | | | | | | | | | This allows us to mark the parent object as invalid if all associated objects in a presence validated association are marked for destruction. See: https://github.com/rails/rails/issues/6812
* | Add Object#try! with the old NoMethodError raising behaviorDavid Heinemeier Hansson2012-07-273-2/+40
| |
* | will now return nil instead of raise a NoMethodError if the receiving ↵David Heinemeier Hansson2012-07-273-5/+10
| | | | | | | | object does not implement the method
* | Changelog and doc updates for the previous changes.Jon Leighton2012-07-273-24/+27
| |
* | Deprecate Relation#all.Jon Leighton2012-07-276-22/+9
| | | | | | | | | | | | It has been moved to active_record_deprecated_finders. Use #to_a instead.
* | Deprecate ActiveRecord::Base.scoped.Jon Leighton2012-07-2742-504/+497
| | | | | | | | | | | | | | It doesn't serve much purpose now that ActiveRecord::Base.all returns a Relation. The code is moved to active_record_deprecated_finders.
* | ActiveRecord::Base.all returns a Relation.Jon Leighton2012-07-2731-324/+329
| | | | | | | | | | | | | | | | | | | | | | Previously it returned an Array. If you want an array, call e.g. `Post.to_a` rather than `Post.all`. This is more explicit. In most cases this should not break existing code, since Relations use method_missing to delegate unknown methods to #to_a anyway.
* | Only require the `:rails_env` task where is needed.Rafael Mendonça França2012-07-271-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | `:rails_env` tasks is not needed in all the tasks that depends of `load_config`, only in the tasks that uses `Rails.env`. Since `:rails_env` task set the `Rails.env` to be "development" if it is not set we don't need the `||` statements too Fix #7175. Conflicts: activerecord/lib/active_record/railties/databases.rake
* | Merge pull request #7173 from yahonda/address_7138Rafael Mendonça França2012-07-261-1/+1
|\ \ | | | | | | Modify the preference attribute from `:null => false` to `:null => true`
| * | Modify the preference attribute from `:null => false` to `:null => true`Yasuo Honda2012-07-271-1/+1
|/ / | | | | | | | | | | | | | | to address ORA-01400 errors with Oracle enhanced adapter. Issue #4856 had been fixed and tested with the attribute `:null => false, :default => ""`. Now `:null => false` attribute is not necessary to test this issue.
* | * Do not convert digest auth strings to symbols. CVE-2012-3424Aaron Patterson2012-07-261-2/+2
| | | | | | | | | | Conflicts: actionpack/lib/action_controller/metal/http_authentication.rb
* | Merge pull request #7171 from beerlington/refactor_inheritance_base_classRafael Mendonça França2012-07-263-30/+45
|\ \ | | | | | | Refactor ActiveRecord::Inheritance.base_class logic
| * | Refactor ActiveRecord::Inheritance.base_class logicbeerlington2012-07-263-30/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | Moved logic from class_of_active_record_descendant(class) to the base_class method. This method was confusing because it required an argument, but that argument was 'self'. Moved base_class tests to inheritance_test.rb and added some test coverage for some untested cases.
* | | Merge pull request #7170 from makaroni4/masterRafael Mendonça França2012-07-262-2/+2
|\ \ \ | |/ / |/| | Fix typo in documentation
| * | fix typo in documentationAnatoly Makarevich2012-07-262-2/+2
|/ /
* | Merge pull request #7167 from route/missed_extendJosé Valim2012-07-261-0/+1
|\ \ | | | | | | Missed extend for eager_autoload
| * | Missed extend for eager_autoloadDmitry Vorotilin2012-07-261-0/+1
|/ /
* | Merge pull request #7166 from ayrton/patch-1Jon Leighton2012-07-261-13/+13
|\ \ | | | | | | Update activerecord/CHANGELOG.md
| * | Update activerecord/CHANGELOG.mdAyrton De Craene2012-07-261-13/+13
| | | | | | | | | Fixed markdown code indenting
* | | Merge pull request #7161 from ↵Jon Leighton2012-07-261-5/+7
|\ \ \ | |/ / |/| | | | | | | | michaelfairley/eager_load_active_record_association_helpers Eager autoload ActiveRecord association helpers
| * | Eager autoload ActiveRecord association helpersMichael Fairley2012-07-251-5/+7
| | |