Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove unused attributes_with_quotes method. | Emilio Tagua | 2010-03-25 | 1 | -20/+0 |
| | |||||
* | Move require closer to home | Jeremy Kemper | 2010-03-17 | 1 | -1/+0 |
| | |||||
* | fixing activerecord tests [#4205 state:resolved] | Aaron Patterson | 2010-03-17 | 1 | -0/+1 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | clean up more warnings, remove unnecessary methods, fix eval line numbers. ↵ | Aaron Patterson | 2010-03-16 | 1 | -0/+4 |
| | | | | | | [#4193 state:resolved] Signed-off-by: wycats <wycats@gmail.com> | ||||
* | cleaning up many more warnings in activerecord [#4180 state:resolved] | Aaron Patterson | 2010-03-15 | 1 | -2/+8 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | speeding up clone_attributes, changing readonly to be initialized in def ↵ | Aaron Patterson | 2010-03-14 | 1 | -8/+9 |
| | | | | | | initialize Signed-off-by: wycats <wycats@gmail.com> | ||||
* | cleaning up some test warnings | Aaron Patterson | 2010-03-14 | 1 | -0/+1 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | Make many parts of Rails lazy. In order to facilitate this, | wycats | 2010-03-07 | 1 | -165/+5 |
| | | | | | | | | | | | | add lazy_load_hooks.rb, which allows us to declare code that should be run at some later time. For instance, this allows us to defer requiring ActiveRecord::Base at boot time purely to apply configuration. Instead, we register a hook that should apply configuration once ActiveRecord::Base is loaded. With these changes, brings down total boot time of a new app to 300ms in production and 400ms in dev. TODO: rename base_hook | ||||
* | converting inject to each and map | Aaron Patterson | 2010-03-06 | 1 | -5/+4 |
| | | | | | | [#4119 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | fixed a 'RecordNotFound' bug when calling 'reload' on a object which doesn't ↵ | Tobias Bielohlawek | 2010-02-26 | 1 | -1/+1 |
| | | | | | | | | met the default_scope conditions, added test [#3166 status:resolved] The reload method didn't made use of 'with_exclusive_scope' when reloading the object. This lead to a RecordNotFound exception, in case the object doesn't met the default_scope condition (anymore) - which is obviously a bug. This quick fix makes use of with_exclusive_scope in the reload method as well. See test for full example. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Fix a bug where default_scope was overriding attributes given on model ↵ | Henry Hsu | 2010-02-26 | 1 | -1/+1 |
| | | | | | | initialization [#3218 status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Use Object#singleton_class instead of #metaclass. Prefer Ruby's choice. | Jeremy Kemper | 2010-02-25 | 1 | -1/+1 |
| | |||||
* | Require persisted? in ActiveModel::Lint and remove new_record? and ↵ | José Valim | 2010-02-21 | 1 | -4/+9 |
| | | | | destroyed? methods. ActionPack does not care if the resource is new or if it was destroyed, it cares only if it's persisted somewhere or not. | ||||
* | Rename Rails::Subscriber to Rails::LogSubscriber | Prem Sichanugrist | 2010-02-16 | 1 | -1/+1 |
| | |||||
* | Move batch finders to Relation | Pratik Naik | 2010-02-12 | 1 | -1/+2 |
| | |||||
* | removing , from ,= statement in WrappedDatabaseException constructor | SubbaRao Pasupuleti | 2010-02-03 | 1 | -1/+1 |
| | | | | | | [#3830 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Make default_scope work with Relations | Pratik Naik | 2010-01-23 | 1 | -2/+3 |
| | |||||
* | Revert "Refactoring attributes/types" [#3348 state:open] | Pratik Naik | 2010-01-22 | 1 | -6/+31 |
| | | | | | | | | | | | | | | | | | This reverts commit f936a1f100e75082081e782e5cceb272885c2df7. Conflicts: activerecord/lib/active_record.rb activerecord/lib/active_record/base.rb Revert "Fixed: #without_typecast should only disable typecasting on the duplicated attributes" [#3387 state:open] This reverts commit 2831996483c6a045f1f38d8030256eb58d9771c3. Reason : It's not generating attribute methods properly, making object.column 5x slower. | ||||
* | Cache quoted_table_name | Pratik Naik | 2010-01-21 | 1 | -4/+5 |
| | |||||
* | Move update and update_all to Relation | Pratik Naik | 2010-01-20 | 1 | -70/+1 |
| | |||||
* | Base.merge_conditions is no longer needed | Pratik Naik | 2010-01-20 | 1 | -14/+0 |
| | |||||
* | Dont delegate Relation#update to arel | Pratik Naik | 2010-01-20 | 1 | -2/+2 |
| | |||||
* | Delegate delete_all to Relation | Pratik Naik | 2010-01-20 | 1 | -22/+1 |
| | |||||
* | Move destroy to Relation | Pratik Naik | 2010-01-20 | 1 | -28/+1 |
| | |||||
* | Remove Base.delete as it's same as Relation#delete | Pratik Naik | 2010-01-20 | 1 | -25/+1 |
| | |||||
* | Delegate exists? to Relation | Pratik Naik | 2010-01-20 | 1 | -35/+1 |
| | |||||
* | Make Relation#destroy_all handle all the cases | Pratik Naik | 2010-01-20 | 1 | -31/+1 |
| | |||||
* | Move array_of_strings? to Relation | Pratik Naik | 2010-01-20 | 1 | -4/+0 |
| | |||||
* | Remove stale methods constructing joins | Pratik Naik | 2010-01-20 | 1 | -28/+0 |
| | |||||
* | Delegate all finders to Relation | Pratik Naik | 2010-01-20 | 1 | -115/+1 |
| | |||||
* | with_scope no longer needs :reverse_merge | Pratik Naik | 2010-01-20 | 1 | -13/+2 |
| | |||||
* | Rename CalculationMethods to Calculations and get rid of the old ↵ | Pratik Naik | 2010-01-19 | 1 | -1/+2 |
| | | | | Calculations module | ||||
* | save(false) is gone, use save(:validate => false) instead. | José Valim | 2010-01-17 | 1 | -5/+5 |
| | |||||
* | Merge docrails | Pratik Naik | 2010-01-17 | 1 | -2/+2 |
| | |||||
* | Cache Model.arel_table | Pratik Naik | 2010-01-17 | 1 | -3/+3 |
| | |||||
* | Use arel_table[] instead of unscoped[] to get arel attribute | Pratik Naik | 2010-01-17 | 1 | -3/+3 |
| | |||||
* | Rename Model.active_relation to Model.unscoped | Pratik Naik | 2010-01-17 | 1 | -12/+12 |
| | |||||
* | Get rid of Base#merge_includes | Pratik Naik | 2010-01-16 | 1 | -5/+0 |
| | |||||
* | No need to set @arel_engine to nil twice. Committed by mistake in 3968825f | Pratik Naik | 2010-01-16 | 1 | -1/+1 |
| | |||||
* | Make sure Model#active_relation always adds STI conditions if needed | Pratik Naik | 2010-01-16 | 1 | -3/+2 |
| | |||||
* | Add Relation#apply_finder_options for applying old finder options | Pratik Naik | 2010-01-16 | 1 | -29/+1 |
| | |||||
* | Rename active_relation_engine -> arel_engine and active_relation_table -> ↵ | Pratik Naik | 2010-01-16 | 1 | -10/+10 |
| | | | | arel_table | ||||
* | Remove protected method Class#scoped? | Pratik Naik | 2010-01-16 | 1 | -9/+5 |
| | |||||
* | Make type_condition return Arel predicate and not a string condition | Pratik Naik | 2010-01-16 | 1 | -5/+3 |
| | |||||
* | Remove unused default_select | Pratik Naik | 2010-01-16 | 1 | -8/+0 |
| | |||||
* | Remove scope related code from construct_join | Pratik Naik | 2010-01-16 | 1 | -20/+6 |
| | |||||
* | Remove stale construct_* methods | Pratik Naik | 2010-01-16 | 1 | -24/+0 |
| | |||||
* | Remove construct_conditions | Pratik Naik | 2010-01-16 | 1 | -11/+2 |
| | |||||
* | Simplify Model.delete_all | Pratik Naik | 2010-01-16 | 1 | -1/+1 |
| | |||||
* | Model.delete should just use scoped.delete | Pratik Naik | 2010-01-16 | 1 | -1/+1 |
| |