aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
Commit message (Collapse)AuthorAgeFilesLines
* Remove scope related code from construct_joinPratik Naik2010-01-162-21/+7
|
* Remove stale construct_* methodsPratik Naik2010-01-161-24/+0
|
* Remove construct_conditionsPratik Naik2010-01-161-11/+2
|
* Simplify Model.delete_allPratik Naik2010-01-161-1/+1
|
* Model.delete should just use scoped.deletePratik Naik2010-01-161-1/+1
|
* Remove AR#scope() methodPratik Naik2010-01-162-34/+17
|
* Fix the query matching in SubscriberTestPratik Naik2010-01-161-2/+2
|
* Make scopes use relations under the hoodPratik Naik2010-01-1613-330/+361
|
* Do not send the whole controller in notifications, cherry pick required pieces.José Valim2010-01-151-2/+9
|
* ActiveRecord should give the connection id as payload, and not the whole ↵José Valim2010-01-151-1/+1
| | | | connection.
* Move Dispatcher setup to Railties and add instrumentation hook.José Valim2010-01-151-0/+13
|
* Different nested validations should not be ignore [#3638 status:resolved]José Valim2010-01-142-1/+10
|
* Tidy up ActiveRecord and Views runtime information on process action logger.José Valim2010-01-141-3/+3
|
* Add subscriber for ActionPack and move all logging inside it.José Valim2010-01-133-4/+4
|
* Deprecate ActiveRecord::Base.colorize_logging.José Valim2010-01-132-9/+8
|
* Create Rails::Subscriber::TestHelper and use it to make ActiveRecord ↵José Valim2010-01-132-0/+52
| | | | subscriber tests run in both sync and async scenarios.
* Move AR logging responsibilities to ActiveRecord::Railties::Subscriber.José Valim2010-01-135-46/+35
|
* Remove allow_concurrency and verification_timeout from ActiveRecord::Base ↵José Valim2010-01-132-25/+0
| | | | (deprecated since 2.2).
* Set deprecation warnings for RAILS_ENV and RAILS_DEFAULT_LOGGER.José Valim2010-01-132-31/+31
|
* reduce max size of fixture IDs to fix sqlite2 tests, because sqlite2 was ↵Chad Woolley2010-01-122-3/+3
| | | | | | getting negative and changing values for ID field. See http://www.sqlite.org/datatypes.html Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Use Relation#except for reversing the orderPratik Naik2010-01-121-3/+2
|
* Ensure using proper engine for Arel::TablePratik Naik2010-01-121-4/+4
|
* Delay building arel relation as long as possible for improved introspectionPratik Naik2010-01-127-185/+182
|
* Expose connections available in the connection pool.José Valim2010-01-113-1/+5
|
* Send the connection in AR notifications to avoid checking out new ↵José Valim2010-01-112-3/+5
| | | | connections in threads just for logging purposes.
* Merge remote branch 'eloy/master'José Valim2010-01-0913-31/+125
|\
| * Renamed AssociationReflection #collection_association? to #collection?.Eloy Duran2010-01-085-14/+14
| |
| * Rollback the transaction when one of the autosave associations fails to ↵Eloy Duran2010-01-086-5/+78
| | | | | | | | save. [#3391 state:resolved]
| * Exclude unchanged records from the collection being considered for autosave. ↵Lawrence Pit2010-01-082-12/+7
| | | | | | | | | | | | [#2578 state:resolved] Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com>
| * Add failing test that triggers the stack overflowBryan Stearns2010-01-084-0/+26
| |
* | Ensure new validates works with uniqueness validator.José Valim2010-01-084-90/+85
| |
* | Allow AR::Schema's migrations_path to be overwritten by subclasses. Defaults ↵Jeffrey Hardy2010-01-083-3/+11
|/ | | | | | | | to 'db/migrate' [#3671 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Revert "Remove connection method definition, since it's called just once."Jeremy Kemper2010-01-071-1/+5
| | | | | | Restore the connection method which was added so it can be overridden. This reverts commit e428c75d2b67c6a7bd5f5e7e1719cdece84d497f.
* Merge remote branch 'eloy/master'José Valim2010-01-076-82/+140
|\
| * Raise a RecordNotFound if an ID in nested attributes is given but doesn't ↵Eloy Duran2010-01-072-4/+31
| | | | | | | | return a record. [#2415 state:resolved]
| * Moved the validation logic to the association reflection and refactored ↵Eloy Duran2010-01-074-33/+70
| | | | | | | | autosave_association.rb a bit.
| * Remove deprecated '_delete' option from NestedAttributes.Eloy Duran2010-01-072-19/+2
| |
| * Removed unnecessary call to #try and cleaned up a bit more.Eloy Duran2010-01-071-6/+4
| |
| * Don't use strings for callbacks, as these will be evaled. Rather use ↵Eloy Duran2010-01-071-2/+2
| | | | | | | | | | | | symbols, which uses a direct method dispatch. Patch by Comron Sattari. [#3429 state:resolved]
| * Cleanup some code in nested_attributes.rb, autosave_association.rb, and ↵Eloy Duran2010-01-074-14/+9
| | | | | | | | | | | | associations.rb with AssociationReflection#collection_association? Also cache the result value.
| * Add AssociationReflection#collection_association? which returns true if it's ↵Eloy Duran2010-01-072-1/+17
| | | | | | | | for a has_many or has_and_belongs_to_many association.
| * Refactored nested attributes a bit around :reject_if => :all_blank.Eloy Duran2010-01-072-6/+8
| |
* | Allow to specify default attributes names translation in I18n yml files.José Valim2010-01-071-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | For example, you could easily specify :created_at and :updated_at translations as: en: attributes: created_at: "Created at" updated_at: "Updated at" This configuration is built on ActiveModel, so it means those translations are shared between different ORMs as well (but always as a fallback).
* | Be sure to dup load paths before clearing the array.José Valim2010-01-071-1/+1
| |
* | Add a deprecation message to activerecord.errors.José Valim2010-01-071-0/+11
| |
* | Errors messages are now moved from :activerecord.errors to simply :errors on ↵José Valim2010-01-075-119/+37
|/ | | | I18n yml files.
* Ensure before_validation and after_validation accepts :on as option.José Valim2010-01-062-3/+64
|
* Restore require of 'active_record/fixtures' for Rake tasks that use themJeffrey Hardy2010-01-061-0/+4
|
* Use better defaults for fixtures: transactional=true, instantiated=falseJeffrey Hardy2010-01-061-2/+2
| | | | | These reflect the settings that were previously included in the default test_helper.rb, removed in d7d9173.
* Update db:migrate error message to reflect the removal of config.frameworksJeffrey Hardy2010-01-061-1/+1
|