aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
Commit message (Collapse)AuthorAgeFilesLines
* renaming bind_values to binds where it makes senseAaron Patterson2010-10-261-2/+2
|
* one more mysql test left!Aaron Patterson2010-10-261-1/+1
|
* find_one uses prepared statement cacheAaron Patterson2010-10-261-0/+1
|
* exec returns an AR::ResultAaron Patterson2010-10-261-2/+2
|
* use a map and flatten to avoid << calls on arrayAaron Patterson2010-10-201-7/+5
|
* only call `column_methods_hash` once, use array math for faster test of ↵Aaron Patterson2010-10-201-5/+4
| | | | existence
* roll up weird method to meta programmed methodAaron Patterson2010-10-201-11/+5
|
* use zip + Hash.[] rather than looping with an indexAaron Patterson2010-10-201-3/+1
|
* extract options is not necessaryAaron Patterson2010-10-201-1/+0
|
* removing unused variableAaron Patterson2010-10-201-1/+1
|
* default scope merge where clauses [#5488 state:resolved]Jan2010-10-201-0/+1
|
* default scope can accept any object that responds to #callAaron Patterson2010-10-191-1/+1
|
* Allow default_scope to accept a Proc.Tim Morgan2010-10-191-1/+6
|
* reorder removed in favor of except(:order).orderSantiago Pastorino2010-10-111-1/+1
|
* be kind to the garbage collector and reuse our visitor objectAaron Patterson2010-10-031-1/+4
|
* avoid creating objects when we canAaron Patterson2010-10-031-2/+1
|
* Arel::Sql::Engine.new does not do anything anymoreAaron Patterson2010-09-301-1/+1
|
* type_name should check for blank because people may have messed up databasesAaron Patterson2010-09-301-1/+1
|
* type_name is never a blank string, so use faster .nil? callAaron Patterson2010-09-301-1/+1
|
* speeding up object instantiation by eliminating instance_evalAaron Patterson2010-09-301-7/+21
|
* Set attributes properly for model built from association with conditions ↵Marcelo Giorgi2010-09-281-8/+9
| | | | | | [#5562 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* do not need intermediate variable, avoid lasgnAaron Patterson2010-09-271-2/+3
|
* Delegate ActiveRecord::Base.offset to scoped methods (analogous to limit) ↵Marcelo Giorgi2010-09-241-1/+1
| | | | | | [#5688 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* use instance_eval, reduce method calls.Stevie Graham2010-09-211-15/+7
| | | | | | | | | | | | | | | | execution time in seconds for `rake test_sqlite3`: ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0] - before: 52.771426, 52.159505, 52.937056 - after: 51.452584, 51.897017, 51.584431 rubinius 1.0.1 (1.8.7 release 2010-06-03 JI) [x86_64-apple-darwin10.4.0] - before: 284.334076 - after: 285.753028 ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0] - before: 75.811548, 75.533153, 75.353122 - after: 75.244243, 75.19226, 75.256925
* Cache unserialized attributesJeremy Kemper2010-09-091-6/+5
|
* refactor a couple injects to map + Hash[]Aaron Patterson2010-09-081-5/+2
|
* avoid an inject in favor of dupAaron Patterson2010-09-081-3/+3
|
* serialized attributes should be serialized before validation [#5525 ↵Aaron Patterson2010-09-071-2/+2
| | | | state:resolved]
* no need to freeze this stringAaron Patterson2010-09-071-1/+1
|
* unscoped has nothing so merging with a relation just returns the relationSantiago Pastorino2010-09-071-1/+1
|
* Cleanup deprecation warnings in active recordCarlos Antonio da Silva2010-09-061-22/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Revert "Setup explicit requires for files with exceptions. Removed them from ↵José Valim2010-09-021-1/+0
| | | | | | | | autoloading." Booting a new Rails application does not work after this commit [#5359 state:open] This reverts commit 38a421b34d0b414564e919f67d339fac067a56e6.
* Setup explicit requires for files with exceptions. Removed them from ↵Łukasz Strzałkowski2010-09-021-0/+1
| | | | | | autoloading. Signed-off-by: José Valim <jose.valim@gmail.com>
* Reset default scope in Thread.current when class is unloaded [#5497 ↵Andrew White2010-09-011-0/+8
| | | | | | state:resolved] Signed-off-by: Xavier Noria <fxn@hashref.com>
* Replacing superclass_delegating_accessoror with class_attribute.Neeraj Singh2010-08-311-1/+1
| | | | | | | :store_full_sti_class will have value true or false so there is no danger of mutability here. Signed-off-by: José Valim <jose.valim@gmail.com>
* :nodoc:s #unscoped until its behavior is more clear, now sometimes works, ↵Xavier Noria2010-08-251-1/+1
| | | | sometimes not
* Merge remote branch 'docrails/master'Xavier Noria2010-08-251-0/+5
|\
| * unscoped does not work when chained with named_scopeNeeraj Singh2010-08-231-0/+5
| |
* | fix broken relative links [#5415 state:committed]Joost Baaij2010-08-241-1/+1
|/ | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
* Fix docs to reference ActiveRecord::LogSubscriberEvgeniy Dolzhenko2010-08-211-1/+1
| | | | since Rails::LogSubscriber doesn't seem to be defined anymore
* Optimize find_sti_class when store_full_sti_class is trueAndrew White2010-08-191-1/+5
| | | | | | [#5403] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Memoize STI class lookups for the duration of a requestJeremy Kemper2010-08-191-2/+2
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-87/+87
| | | | 's/[ \t]*$//' -i {} \;)
* Removing most of the symbol to proc usage in Active RecordPrem Sichanugrist2010-08-131-3/+3
| | | | This will hopefully make Active Record run a bit more faster.
* commit review: applies guidelines to "# =>"Xavier Noria2010-08-121-2/+2
|
* updating documentation for named_scope and default_scopeNeeraj Singh2010-08-121-0/+10
|
* Merge remote branch 'docrails/master'Xavier Noria2010-08-051-9/+9
|\
| * fixing documentationNeeraj Singh2010-08-031-9/+9
| |
* | I'm unsure how cloning was working in Rails 3 beforewycats2010-08-041-1/+1
|/
* Correcting the documentation which wrongly states that each dynamic finder ↵Neeraj Singh2010-08-021-7/+4
| | | | | | | creates method on the class. Only dynamic finders using <tt>scoped_by_*</tt> creates new methods.