Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | remove blank lines in the start of the ActiveRecord files | Ponomarev Nikolay | 2014-07-29 | 1 | -1/+0 |
| | |||||
* | Refactor determination of max updated timestamp | Sean Griffin | 2014-06-09 | 1 | -3/+5 |
| | | | | `[].max # => nil` | ||||
* | [Active Record] Renamed private methods create_record and update_record | Prathamesh Sonpatki | 2014-02-20 | 1 | -2/+2 |
| | | | | | | This is to ensure that they are not accidentally called by the app code. They are renamed to _create_record and _update_record respectively. Closes #11645 | ||||
* | Move changed_attributes into dirty.rb | Keenan Brock | 2014-01-22 | 1 | -1/+1 |
| | | | Move serialization dirty into serialization.rb | ||||
* | put core at the beginning so other classes can modify the behavior | Keenan Brock | 2014-01-22 | 1 | -1/+1 |
| | |||||
* | Refactor logic to grab the max time of the list of timestamp names in #cache_key | Carlos Antonio da Silva | 2013-11-04 | 1 | -2/+2 |
| | | | | | Reuse the already existing logic used for grabbing this information from the updated columns. | ||||
* | correct documentation about active_record behavior | Steven Yang | 2013-06-15 | 1 | -2/+2 |
| | |||||
* | cache_key consults updated_on timestamp if present | Brendon Murphy | 2013-02-26 | 1 | -0/+6 |
| | | | | | - Extract max timestamp retrieval for cache_key - Update changelog for cache_key changes | ||||
* | Rename update_attributes method to update, keep update_attributes as an alias | Amparo Luna + Guillermo Iguaran | 2013-01-03 | 1 | -2/+2 |
| | |||||
* | Remove not used load hooks for active_record_config | Carlos Antonio da Silva | 2012-11-09 | 1 | -3/+0 |
| | | | | | These were removed with ActiveRecord::Model in https://github.com/rails/rails/commit/9e4c41c903e8e58721f2c41776a8c60ddba7a0a9#L15L156 | ||||
* | Remove ActiveRecord::Model | Jon Leighton | 2012-10-26 | 1 | -3/+2 |
| | | | | | | | | | | In the end I think the pain of implementing this seamlessly was not worth the gain provided. The intention was that it would allow plain ruby objects that might not live in your main application to be subclassed and have persistence mixed in. But I've decided that the benefit of doing that is not worth the amount of complexity that the implementation introduced. | ||||
* | Revert "Get rid of the ActiveRecord::Model::DeprecationProxy thing." | Jeremy Kemper | 2012-10-20 | 1 | -1/+1 |
| | | | | This reverts commit 83846838252397b3781eed165ca301e05db39293. | ||||
* | Get rid of the ActiveRecord::Model::DeprecationProxy thing. | Jon Leighton | 2012-10-19 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | I think it's going to be too much pain to try to transition the :active_record load hook from executing against Base to executing against Model. For example, after Model is included in Base, and modules included in Model will no longer get added to the ancestors of Base. So plugins which wish to be compatible with both Model and Base should use the :active_record_model load hook which executes *before* Base gets loaded. In general, ActiveRecord::Model is an advanced feature at the moment and probably most people will continue to inherit from ActiveRecord::Base for the time being. | ||||
* | Rename the partial_updates config to partial_writes | Jon Leighton | 2012-10-19 | 1 | -1/+1 |
| | | | | This reflects the fact that it now impact inserts as well as updates. | ||||
* | Call super to nullify the reference to the original errors object in the ↵ | Christian Seiler | 2012-10-16 | 1 | -0/+1 |
| | | | | dup'ed object (call ActiveModel::Validations#initialize_dup). Closes #7291 | ||||
* | fix :nodoc:s in AR::Timestamp [ci skip] | Francesco Rodriguez | 2012-09-19 | 1 | -7/+7 |
| | |||||
* | load active_support/core_ext/class/attribute in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 |
| | |||||
* | Simplify AR configuration code. | Jon Leighton | 2012-06-15 | 1 | -2/+6 |
| | | | | | Get rid of ActiveModel::Configuration, make better use of ActiveSupport::Concern + class_attribute, etc. | ||||
* | Support configuration on ActiveRecord::Model. | Jon Leighton | 2011-12-28 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | The problem: We need to be able to specify configuration in a way that can be inherited to models that include ActiveRecord::Model. So it is no longer sufficient to put 'top level' config on ActiveRecord::Base, but we do want configuration specified on ActiveRecord::Base and descendants to continue to work. So we need something like class_attribute that can be defined on a module but that is inherited when ActiveRecord::Model is included. The solution: added ActiveModel::Configuration module which provides a config_attribute macro. It's a bit specific hence I am not putting this in Active Support or making it a 'public API' at present. | ||||
* | Allow instances to disable record_timestamps | Pratik Naik | 2011-10-26 | 1 | -1/+1 |
| | |||||
* | Raise error when using write_attribute with a non-existent attribute. | Jon Leighton | 2011-09-13 | 1 | -1/+3 |
| | | | | | | | | | Previously we would just silently write the attribute. This can lead to subtle bugs (for example, see the change in AutosaveAssociation where a through association would wrongly gain an attribute. Also, ensuring that we never gain any new attributes after initialization will allow me to reduce our dependence on method_missing. | ||||
* | Fix test failures on 1.8.7, since Object#initialize_dup is not defined there ↵ | Jon Leighton | 2011-08-29 | 1 | -1/+0 |
| | | | | (and this call to super is no essential, so easiest to simply remove) | ||||
* | Move clear_timestamp_attributes into Timestamp module | Jon Leighton | 2011-08-29 | 1 | -1/+13 |
| | |||||
* | Updates to ActiveRecord::Timestamp documentation. | Brian Morearty | 2011-02-05 | 1 | -6/+8 |
| | | | | | | | | | | Change ActiveRecord::Base.xyz to config.active_record.xyz in docs. Remove <tt> from code samples. Update skip_time_zone_conversion_for_attributes code sample: put the call in the model class. Clarify that skip_time_zone_conversion_for_attributes skips converion when reading. | ||||
* | Implement and test private method all_timestamp_attributes_in_model | Franck Verrot | 2011-02-02 | 1 | -0/+4 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Added timestamp_attributes_for_create_in_model | Franck Verrot | 2011-02-02 | 1 | -0/+4 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Make sure Model#touch doesn't try to update non existing columns | Pratik Naik | 2010-12-30 | 1 | -1/+1 |
| | |||||
* | class inheritable attributes is used no more! all internal use of class ↵ | Josh Kalderimis | 2010-11-20 | 1 | -3/+5 |
| | | | | | | inheritable has been changed to class_attribute. class inheritable attributes has been deprecated. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Make should_record_timestamps? serialization aware rather than object#changed? | Pratik Naik | 2010-11-02 | 1 | -1/+1 |
| | |||||
* | Ensure timestamps are not generated when explicitly set to false [#5440 ↵ | José Valim | 2010-08-24 | 1 | -1/+1 |
| | | | | state:resolved] | ||||
* | Make update_attribute behave as in Rails 2.3 and document the behavior ↵ | José Valim | 2010-08-12 | 1 | -20/+19 |
| | | | | intrinsic to its implementation. | ||||
* | Merge remote branch 'docrails/master' into 3-0-stable | Xavier Noria | 2010-08-03 | 1 | -1/+2 |
|\ | |||||
| * | ensuring that description does not exceed 100 columns | Neeraj Singh | 2010-08-02 | 1 | -1/+2 |
| | | |||||
* | | Add an internal (private API) after_touch callback. [#5271 state:resolved] | José Valim | 2010-08-02 | 1 | -13/+0 |
|/ | |||||
* | moving time zone related documentation to timestamp.rb from base.rb | Neeraj Singh | 2010-07-29 | 1 | -0/+12 |
| | |||||
* | Timestamp columns of HABTM join table should record timestamps | Neeraj Singh | 2010-07-21 | 1 | -3/+16 |
| | | | | [#5161 state:resolved] | ||||
* | Tidying up a bit, so update_attribute is not called twice on touch. | José Valim | 2010-07-13 | 1 | -15/+9 |
| | |||||
* | with this fix touch method - does not call validations - doest not call ↵ | Neeraj Singh | 2010-07-13 | 1 | -9/+7 |
| | | | | | | | | callbacks - updates updated_at/on along with attribute if attribute is provided - marks udpated_at/on and attribute as NOT changed [#2520 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Improve a bit the code in latest commits. | José Valim | 2010-07-08 | 1 | -13/+7 |
| | |||||
* | This patch changes update_attribute implementatino so: | Neeraj Singh | 2010-07-08 | 1 | -2/+10 |
| | | | | | | | | | | - it will only save the attribute it has been asked to save and not all dirty attributes - it does not invoke callbacks - it does change updated_at/on Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | consolidating updated_at and updated_on | Neeraj Singh | 2010-07-08 | 1 | -9/+16 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Adds title and proper formatting to docs. | Rizwan Reza | 2010-06-16 | 1 | -6/+12 |
| | |||||
* | eliminate alias_method_chain from ActiveRecord | wycats | 2010-05-09 | 1 | -26/+22 |
| | |||||
* | Break up DependencyModule's dual function of providing a "depend_on" DSL and ↵ | Joshua Peek | 2009-05-28 | 1 | -1/+1 |
| | | | | "included" block DSL into separate modules. But, unify both approaches under AS::Concern. | ||||
* | Use DependencyModule for included hooks in ActiveRecord | Bryan Helmkamp | 2009-05-11 | 1 | -5/+7 |
| | |||||
* | Added :touch option to belongs_to associations that will touch the parent ↵ | David Heinemeier Hansson | 2009-04-16 | 1 | -3/+13 |
| | | | | record when the current record is saved or destroyed [DHH] | ||||
* | Added ActiveRecord::Base#touch to update the updated_at/on attributes with ↵ | David Heinemeier Hansson | 2009-04-16 | 1 | -9/+29 |
| | | | | the current time [DHH] | ||||
* | Ensure of Model#create support custom updated_at and updated_on attributes ↵ | Luis Hurtado | 2008-12-22 | 1 | -2/+2 |
| | | | | | | [#1612 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Partial updates play nice with updated_at/on timestamps | Jeremy Kemper | 2008-03-31 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Partial updates include only unsaved attributes. Off by default; set ↵ | Jeremy Kemper | 2008-03-31 | 1 | -2/+2 |
| | | | | | | YourClass.partial_updates = true to enable. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9157 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |