aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record.rb
Commit message (Collapse)AuthorAgeFilesLines
* eliminate alias_method_chain from ActiveRecordwycats2010-05-091-0/+2
|
* i18n -> AS/i18nXavier Noria2010-04-141-1/+1
|
* adds missing requires for arel and i18n, prevents Arel constant from being ↵Xavier Noria2010-04-141-1/+3
| | | | autoloaded (which was still seen), though it probably hides an issue related to dependencies
* Replace the placeholder base_hook API with on_load. To specify some code thatwycats2010-03-291-3/+3
| | | | | | | | should run during framework load do: ActiveSupport.on_load(:action_controller) do # Code run in the context of AC::Base end
* Make many parts of Rails lazy. In order to facilitate this,wycats2010-03-071-5/+8
| | | | | | | | | | | | 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
* Revert "Fix test load paths for those not using bundler"Carlhuda2010-02-231-0/+1
| | | | | | This reverts commit eec2d301d4ce9df9c71c1a5aa63053eb970b6818. This commit broke tests. You cannot have a file called "bundler" on the load path.
* Fix test load paths for those not using bundlerJoshua Peek2010-02-151-1/+0
|
* Move batch finders to RelationPratik Naik2010-02-121-1/+1
|
* Updating copyright dates on all licensesMikel Lindsaar2010-02-011-1/+1
|
* Axe AM state machineJoshua Peek2010-01-301-1/+0
| | | | We're going do it eventually, get it done before 3.0 is final.
* Revert "Refactoring attributes/types" [#3348 state:open]Pratik Naik2010-01-221-24/+0
| | | | | | | | | | | | | | | | | 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.
* Rename CalculationMethods to Calculations and get rid of the old ↵Pratik Naik2010-01-191-2/+1
| | | | Calculations module
* Autoload AR test caseJoshua Peek2010-01-041-0/+3
|
* Move Relation#spawn and Relation#merge to a separate modulePratik Naik2010-01-031-0/+1
|
* Move predicate building to a stand alone PredicateBuilder classPratik Naik2010-01-011-0/+1
|
* Fix up AR extension by using Railties module instead of Rails and requiring ↵Jeremy Kemper2009-12-301-1/+0
| | | | ControllerRuntime at initialization time instead of boot
* Organize Relation methods into separate modulesPratik Naik2009-12-301-1/+8
|
* Move Relation calculation methods to a separate modulePratik Naik2009-12-281-0/+1
|
* Remove ActiveRecord runtime logging from ActionPack and place in ↵José Valim2009-12-271-0/+1
| | | | ActiveRecord, adding it through config.action_controller.include hook.
* Flip deferrable autoload conventionJoshua Peek2009-12-221-52/+64
|
* Fully expand relative rails framework paths and make sure we aren'tJoshua Peek2009-12-161-7/+8
| | | | adding any to the load path more than once.
* Reorganize autoloads:Carlhuda2009-12-021-47/+53
| | | | | | | | | | | | | | | | | | | | | * A new module (ActiveSupport::Autoload) is provide that extends autoloading with new behavior. * All autoloads in modules that have extended ActiveSupport::Autoload will be eagerly required in threadsafe environments * Autoloads can optionally leave off the path if the path is the same as full_constant_name.underscore * It is possible to specify that a group of autoloads live under an additional path. For instance, all of ActionDispatch's middlewares are ActionDispatch::MiddlewareName, but they live under "action_dispatch/middlewares/middleware_name" * It is possible to specify that a group of autoloads are all found at the same path. For instance, a number of exceptions might all be declared there. * One consequence of this is that testing-related constants are not autoloaded. To get the testing helpers for a given component, require "component_name/test_case". For instance, "action_controller/test_case". * test_help.rb, which is automatically required by a Rails application's test helper, requires the test_case.rb for all active components, so this change will not be disruptive in existing or new applications.
* Move validator, human_name and human_attribute_name to ActiveModel, remove ↵José Valim2009-10-201-1/+0
| | | | | | deprecated error messages and add i18n_scope and lookup_ancestors. Signed-off-by: Carl Lerche <carllerche@mac.com>
* Use bundled env for tests onlyJeremy Kemper2009-10-191-9/+4
|
* Refactoring attributes/types [#3348 state:resolved]Eric Chapweske2009-10-171-0/+16
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Fix env pathJeremy Kemper2009-10-141-1/+1
|
* Include bundled env in toplevel require, if presentJeremy Kemper2009-10-141-8/+10
|
* No more toplevel arel siblingJeremy Kemper2009-10-141-4/+2
|
* Merge commit 'rails/master'Emilio Tagua2009-08-101-0/+1
|\ | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/calculations.rb activerecord/lib/active_record/connection_adapters/mysql_adapter.rb activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
| * Introduce validates_with to encapsulate attribute validations in a class.Jeff Dean2009-08-091-0/+1
| | | | | | | | | | | | [#2630 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* | Merge commit 'rails/master'Emilio Tagua2009-08-051-0/+1
|\|
| * Add simple support for ActiveModel's StateMachine for ActiveRecordJoshua Peek2009-08-041-0/+1
| |
* | Merge commit 'rails/master'Emilio Tagua2009-07-311-2/+11
|\| | | | | | | | | Conflicts: activerecord/lib/active_record/associations.rb
| * Start separating primary key concernsJoshua Peek2009-07-301-0/+1
| |
| * Concernify AR AttributeMethodsJoshua Peek2009-07-301-1/+9
| |
| * Merge docrailsPratik Naik2009-07-251-1/+1
| |
* | Introduced ActiveRecord::Relation, a layer between an ARel relation and an ↵Emilio Tagua2009-07-211-0/+1
| | | | | | | | AR relation
* | Merge commit 'rails/master'Emilio Tagua2009-06-121-1/+1
|\|
| * Integrate ActiveModel::Observing into ActiveRecordJoshua Peek2009-06-101-1/+1
| |
* | Merge commit 'rails/master'Emilio Tagua2009-06-021-1/+9
|\| | | | | | | | | | | Conflicts: activerecord/lib/active_record.rb
| * Merge branch 'master' into active_modelJoshua Peek2009-05-291-10/+3
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: activemodel/lib/active_model/core.rb activemodel/test/cases/state_machine/event_test.rb activemodel/test/cases/state_machine/state_transition_test.rb activerecord/lib/active_record/validations.rb activerecord/test/cases/validations/i18n_validation_test.rb activeresource/lib/active_resource.rb activeresource/test/abstract_unit.rb
| * | Make Active Resource use ActiveModel::ErrorsPratik Naik2009-03-191-3/+1
| | |
| * | Move all the Active Record validations to Active ModelPratik Naik2009-03-191-0/+9
| | |
* | | Set ActiveRecord as Arel engine on load.Emilio Tagua2009-06-021-0/+1
| | |
* | | Merge commit 'rails/master'Emilio Tagua2009-05-181-3/+0
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record.rb Updated: Arel submodule
| * | Revert "Get AR CI passing again by requiring the entire core_ext"Jeremy Kemper2009-05-181-3/+0
| | | | | | | | | | | | This reverts commit 8e6a18d8672f7efe6ef79b49185e4a6a23e4e547.
* | | Merge commit 'rails/master'Emilio Tagua2009-05-181-2/+3
|\| | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/base.rb activerecord/lib/active_record/migration.rb activerecord/test/cases/helper.rb
| * | Get AR CI passing again by requiring the entire core_extYehuda Katz2009-05-161-0/+3
| | | | | | | | | | | | | | | Note that this includes Time and Date; we should really figure out what parts of core_ext are really required for AR and require just those.
| * | Cherry-pick core extensionsJeremy Kemper2009-05-131-1/+0
| | |
| * | Remove support for deprecated validation message interpolation formatJeremy Kemper2009-05-131-1/+0
| | |