1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/active_record
Curtis Hawthorne 7e06494e32 Destroy respects optimistic locking.
Now works with :dependent => :destroy and includes unit tests for that
case.  Also includes better error messages when updating/deleting stale
objects.

[#1966 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-27 21:53:51 -07:00
..
associations Ensure not to load the entire association when bulk updating existing records using nested attributes 2010-04-14 01:52:29 +01:00
attribute_methods fix stack trace lines on class_eval 2010-04-09 21:28:49 +02:00
connection_adapters Remove quoted_string_prefix entirely since PostgreSQL was the only database adapter relying on it. 2010-04-24 16:27:20 -07:00
locale Drop AR I18n deprecation and simple use errors.messages as fallback. 2010-01-30 13:12:12 +01:00
locking Destroy respects optimistic locking. 2010-04-27 21:53:51 -07:00
railties Support fixtures for namespaced models [#2965 state:resolved] 2010-04-25 16:04:38 +02:00
relation Some require indifferent_access added 2010-04-21 07:45:29 -07:00
serializers Speed up xml serializer by computing values just once and remove unecessary code duplication. 2010-04-22 12:29:08 +02:00
validations Avoid deprecated String#to_a by using Array.wrap(...) instead of Array(...) 2010-04-10 22:37:36 -07:00
aggregations.rb fisting uninitialized ivar warnings. [#4198 state:resolved] 2010-03-16 15:11:00 -07:00
association_preload.rb Dont try to load the record from the db if preloading didn't find anything 2010-03-31 12:56:09 +01:00
associations.rb Destroy respects optimistic locking. 2010-04-27 21:53:51 -07:00
attribute_methods.rb No need to check for generated method, just redispatch 2009-11-14 01:51:52 -08:00
autosave_association.rb save(false) is gone, use save(:validate => false) instead. 2010-01-17 14:22:34 +01:00
base.rb Restore HWIA#stringify_keys! and update changelog 2010-04-22 10:00:23 -07:00
callbacks.rb Avoid deprecated String#to_a by using Array.wrap(...) instead of Array(...) 2010-04-10 22:37:36 -07:00
dynamic_finder_match.rb cleaning up many more warnings in activerecord [#4180 state:resolved] 2010-03-15 08:57:41 -07:00
dynamic_scope_match.rb Introduce dynamic scopes for ActiveRecord: you can now use class methods like scoped_by_user_name(user_name) and scoped_by_user_name_and_password(user_name, password) that will use the scoped method with attributes you supply. [#1648 state:committed] 2008-12-28 20:52:46 +01:00
errors.rb Make many parts of Rails lazy. In order to facilitate this, 2010-03-07 06:24:30 -08:00
fixtures.rb Support fixtures for namespaced models [#2965 state:resolved] 2010-04-25 16:04:38 +02:00
migration.rb moves Object#singleton_class to Kernel#singleton_class to match Ruby also there, same for #class_eval to simplify, and adds coverage for class_eval 2010-04-05 12:15:08 -07:00
named_scope.rb moves Object#singleton_class to Kernel#singleton_class to match Ruby also there, same for #class_eval to simplify, and adds coverage for class_eval 2010-04-05 12:15:08 -07:00
nested_attributes.rb Some require indifferent_access added 2010-04-21 07:45:29 -07:00
observer.rb improve how ActiveRecord::Observer defines callbacks on observed models 2010-04-16 13:12:53 -07:00
query_cache.rb adds missing requires for Object#blank? and Object#present? 2010-03-28 14:15:02 +02:00
railtie.rb Move observers initialization to after_config blocks, they are still being initialized to early (before load paths are being set). 2010-04-20 21:19:48 +02:00
reflection.rb Bring back +extra_conditions+. This effectively reverts 386b7bfd9d 2010-04-03 09:54:15 -07:00
relation.rb Make Relation#inspect less noisy 2010-04-02 18:57:46 +01:00
schema.rb adds missing requires for Object#blank? and Object#present? 2010-03-28 14:15:02 +02:00
schema_dumper.rb Revert "primary_key now supports :limit for MySQL". Break Sam Ruby app. 2010-03-27 14:39:43 +01:00
serialization.rb Break up concerns for choosing what attributes should be serialized and the actual serializer 2009-08-13 22:27:36 -05:00
session_store.rb Fix reset_session with ActiveRecord store [#2200 state:resolved] 2009-05-17 14:42:36 -05:00
test_case.rb Autoload AS test case 2010-01-04 16:22:46 -06:00
timestamp.rb Revert "Changed behavior of touch and added touch! Originally implemented by Obie Fernandez, updated touch! to act as a thin wrapper to touch. [#2520 state:resolved]" 2010-03-27 08:22:32 +00:00
transactions.rb save(false) is gone, use save(:validate => false) instead. 2010-01-17 14:22:34 +01:00
validations.rb Drop AR I18n deprecation and simple use errors.messages as fallback. 2010-01-30 13:12:12 +01:00
version.rb Update versions (otherwise you install a gem from source as beta3 but internally it's beta2) and update CHANGELOG. 2010-04-10 12:17:34 +02:00