aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* db:create for PostgreSQL pulled out into a class.Pat Allan2012-06-171-0/+2
|
* db:create for MySQL now much cleaner.Pat Allan2012-06-171-0/+2
|
* A beginning of sorts.Pat Allan2012-06-171-0/+6
| | | | Minimal implementation that supports db:create SQLite replacement
* SchemaMigration should be loaded lazily.kennyj2012-05-291-0/+1
|
* Fix the buildSantiago Pastorino2012-05-221-1/+0
|
* require active_support/lazy_load_hooks where is neededSantiago Pastorino2012-05-221-0/+1
|
* Lazy load I18nSantiago Pastorino2012-05-111-2/+3
|
* clean up implementation of dynamic methods. use method compilation etc.Jon Leighton2012-05-041-2/+0
|
* add active_record_deprecated_finders as a depJon Leighton2012-04-121-0/+1
|
* Remove IdentityMapCarlos Antonio da Silva2012-03-131-1/+0
|
* Added `none` query method to return zero records.Juanjo Bazán2012-01-311-0/+1
| | | And added NullRelation class implementing the null object pattern for the `Relation` class.
* Merge pull request #4248 from andrew/2012Vijay Dev2011-12-311-1/+1
|\ | | | | Updated copyright notices for 2012
| * Updated copyright notices for 2012Andrew Nesbitt2011-12-311-1/+1
| |
* | Support establishing connection on ActiveRecord::Model.Jon Leighton2011-12-281-0/+1
| | | | | | | | | | This is the 'top level' connection, inherited by any models that include ActiveRecord::Model or inherit from ActiveRecord::Base.
* | Support configuration on ActiveRecord::Model.Jon Leighton2011-12-281-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Deal with global config better between AR::Base and AR::ModelJon Leighton2011-12-241-0/+1
| |
* | Start work towards making AR include-able.Jon Leighton2011-12-241-0/+2
| |
* | DeprecatedUnderscoreRead does not exist anymoreAaron Patterson2011-12-211-1/+0
| |
* | Move DefaultScope and NamedScope under ScopingJon Leighton2011-12-151-2/+9
| |
* | Split out most of the AR::Base code into separate modules :cake:Jon Leighton2011-12-151-3/+14
| |
* | Move delegation reponsibilities of Relation to a module. Also precompile ↵José Valim2011-12-151-0/+1
| | | | | | | | method missing calls for rofscale.
* | implements automatic EXPLAIN logging for slow queriesXavier Noria2011-12-021-0/+2
| |
* | Get rid of the underscore versions of attribute methods!Jon Leighton2011-12-011-0/+1
| | | | | | | | This makes me happy!
* | Extract attribute serialization code into a separate moduleJon Leighton2011-11-301-0/+1
| |
* | Added ActiveRecord::Base.store for declaring simple single-column key/value ↵David Heinemeier Hansson2011-10-131-0/+1
| | | | | | | | stores [DHH]
* | stop messing with the load path, load path should be adjusted in the test taskAaron Patterson2011-08-261-7/+0
| |
* | In 1efd88283ef68d912df215125951a87526768a51, ConnectionAdapters was put ↵Jon Leighton2011-08-161-1/+2
| | | | | | | | under eager_autoload. Due to the requires in that file, this caused ConnectionSpecification to be loaded, which references ActiveRecord::Base, which means the database connection is established. We do not want to connect to the database when Active Record is loaded, only when ActiveRecord::Base is first referenced by the user.
* | lazy load ConnectionAdapters remove require.Vishnu Atrai2011-07-221-1/+2
|/
* Rewrote AssociationPreload.Jon Leighton2011-02-281-1/+0
|
* We're in 2011, let's update our licensePrem Sichanugrist2011-02-221-1/+1
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Merge remote branch 'rails/master' into identity_mapEmilio Tagua2011-02-151-0/+4
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/examples/performance.rb activerecord/lib/active_record/association_preload.rb activerecord/lib/active_record/associations.rb activerecord/lib/active_record/associations/association_proxy.rb activerecord/lib/active_record/autosave_association.rb activerecord/lib/active_record/base.rb activerecord/lib/active_record/nested_attributes.rb activerecord/test/cases/relations_test.rb
| * adding a YAML Column coder for YAML serialization to db columnsAaron Patterson2011-02-011-0/+4
| |
* | Weakling is only required for JRuby.Emilio Tagua2010-11-191-1/+0
| |
* | IdentityMap - Adding Weakling and IM Base as concernMarcin Raczkowski2010-11-191-0/+2
|/
* Always pull in version for frameworks (standardize autoload / require / none)wycats2010-10-101-2/+2
|
* Arel::Sql::Engine.new does not do anything anymoreAaron Patterson2010-09-301-1/+1
|
* mass_assignment_security moved from AR to AMo, and minor test cleanupJosh Kalderimis2010-07-081-1/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Mass assignment security refactoringEric Chapweske2010-07-081-0/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* 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