Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Adds title and basic description where needed. | Rizwan Reza | 2010-06-15 | 1 | -0/+2 |
| | |||||
* | Fix a bunch of minor spelling mistakes | Evgeniy Dolzhenko | 2010-06-15 | 1 | -1/+1 |
|\ | |||||
| * | Fix a bunch of minor spelling mistakes | Evgeniy Dolzhenko | 2010-06-11 | 1 | -1/+1 |
| | | |||||
* | | refactors AR::Base#reset_table_name | Xavier Noria | 2010-06-14 | 1 | -19/+20 |
| | | |||||
* | | Documentation for #quoted_table_name method | Thiago Pradi | 2010-06-14 | 1 | -0/+2 |
| | | | | | | | | Signed-off-by: Xavier Noria <fxn@hashref.com> | ||||
* | | Remove an unused method | Pratik Naik | 2010-06-12 | 1 | -13/+0 |
|/ | |||||
* | Fix ActiveRecord::Base.compute_type swallowing NoMethodError. [#4751 ↵ | Andrew Bloomgarden | 2010-06-08 | 1 | -1/+3 |
| | | | | | | state:resolved] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com> | ||||
* | refactor evals and adds some __FILE__ and __LINE__ | Santiago Pastorino | 2010-05-20 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Remove Model.clear_default_scope | Pratik Naik | 2010-05-18 | 1 | -4/+0 |
| | |||||
* | AR::Base#clone fixed to set dirty bits for cloned object | pleax | 2010-05-16 | 1 | -1/+7 |
| | | | | | | [#2919 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | cache connection when quoting | Comron Sattari | 2010-05-16 | 1 | -5/+6 |
| | | | | | | | [#3642 state:committed] Signed-off-by: Marius Nuennerich <marius@nuenneri.ch> Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | a cloned object no longer mimics changed flags from creator , plus a test ↵ | Federico Brubacher | 2010-05-16 | 1 | -0/+1 |
| | | | | | | case [#4614 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Reset quoted_table_name after set_table_name [#4568 state:resolved] | Santiago Pastorino | 2010-05-15 | 1 | -1/+1 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Modified default_scope to merge with any pre-existing default_scope | David Chelimsky + Brian Tatnall | 2010-05-15 | 1 | -1/+5 |
| | | | | | | | | | | | | and added AR::Base::clear_default_scope - clear_default_scope provides users who rely on the old behaviour of each call to default_scope overwriting any previous default scopes an opportunity to maintain that behaviour. [#4583 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | eliminate alias_method_chain from ActiveRecord | wycats | 2010-05-09 | 1 | -329/+2 |
| | |||||
* | Fix failing test. | José Valim | 2010-04-28 | 1 | -1/+1 |
| | |||||
* | Makes validates_acceptance_of to not override database fields [#4460 ↵ | Santiago Pastorino | 2010-04-28 | 1 | -0/+4 |
| | | | | | | state:committed] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Restore HWIA#stringify_keys! and update changelog | Jeremy Kemper | 2010-04-22 | 1 | -2/+1 |
| | |||||
* | removes unnecessary assignment and local variable in AR::Base#subclasses, ↵ | Xavier Noria | 2010-04-13 | 1 | -3/+2 |
| | | | | and revises its rdoc | ||||
* | Refactor compute_type to handle situations where the correct class is ↵ | Andrew White | 2010-04-12 | 1 | -16/+19 |
| | | | | | | already loaded Signed-off-by: wycats <wycats@gmail.com> | ||||
* | make ActiveRecord::Base.subclasses a public method | Emmanuel Oga | 2010-04-12 | 1 | -1/+5 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | table_name_prefix and table_name_suffix are class_attributes instead of ↵ | Phil Smith | 2010-04-12 | 1 | -4/+5 |
| | | | | | | cattr_accessors. [#4230] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | fix stack trace lines on class_eval | Santiago Pastorino | 2010-04-09 | 1 | -4/+4 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Some doc updates reflecting the new query API | Pratik Naik | 2010-04-08 | 1 | -36/+32 |
| | |||||
* | moves Object#singleton_class to Kernel#singleton_class to match Ruby also ↵ | Xavier Noria | 2010-04-05 | 1 | -1/+1 |
| | | | | there, same for #class_eval to simplify, and adds coverage for class_eval | ||||
* | Update various documentation examples to use new routing DSL | Andrew White | 2010-04-04 | 1 | -1/+1 |
| | |||||
* | Merge commit 'rails/master' | Xavier Noria | 2010-03-31 | 1 | -5/+13 |
|\ | |||||
| * | Replace the placeholder base_hook API with on_load. To specify some code that | wycats | 2010-03-29 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | should run during framework load do: ActiveSupport.on_load(:action_controller) do # Code run in the context of AC::Base end | ||||
| * | Fix dom_id for ActiveRecord [#4296 state:resolved] | José Valim | 2010-03-30 | 1 | -2/+1 |
| | | |||||
| * | Rename modularized_table_name_prefix to full_table_name_prefix [#4032 ↵ | wycats | 2010-03-28 | 1 | -2/+2 |
| | | | | | | | | state:resolved] | ||||
| * | Add the ability to specify table_name_prefix on individual modules | Andrew White | 2010-03-28 | 1 | -1/+8 |
| | | | | | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
| * | Update example of default_scope to use the new arel finder syntax | David Heinemeier Hansson | 2010-03-28 | 1 | -1/+1 |
| | | |||||
| * | adds missing requires for Object#blank? and Object#present? | Xavier Noria | 2010-03-28 | 1 | -0/+1 |
| | | |||||
| * | adds missing requires for Object#duplicable? | Xavier Noria | 2010-03-28 | 1 | -0/+1 |
| | | |||||
* | | Changes migration number to version due to ambiguity. [#3065 state:committed] | Rizwan Reza | 2010-03-28 | 1 | -1/+1 |
|/ | |||||
* | 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 |
| |