aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix memory leak issue in ActiveRecord scoped_methodsJoshua Peek2008-11-061-2/+1
|
* Make #destroy write 1 line into log (instead of 3) (Dmitry Sokurenko) [#689 ↵David Heinemeier Hansson2008-10-291-4/+5
| | | | status:committed]
* Fixed that serialized strings should never be type-casted (i.e. turning ↵David Heinemeier Hansson2008-10-271-1/+1
| | | | "Yes" to a boolean)(Andreas Korth) [#857 state:committed]
* Fixed issue where block is not called on the very first invocation of a ↵Ken Miller2008-10-241-2/+2
| | | | | | find_or_create_by_ automatic finder. [#1224 state:committed]
* Merge docrailsPratik Naik2008-10-161-1/+2
|
* Merge docrailsPratik Naik2008-10-051-26/+124
|
* Dynamic finders should use the ActiveRecord::Base::find method instead of ↵Eloy Duran2008-10-031-4/+4
| | | | | | | | | | | | ::find_initial, :find_last, and ::find_all. This is so when people override ActiveRecord::Base::find, the new ::find method will also be invoked by the dynamic finders. Associations for instance do go through ::find, so this makes it more consistent. Also removed the unnecessary deprecation silence blocks. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1162 state:committed]
* Allowed passing arrays-of-strings to :join everywhere. Merge duplicate join ↵Pivotal Labs2008-09-241-13/+21
| | | | | | | strings to avoid table aliasing problems. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1077 state:committed]
* Add Model#delete instance method, similar to Model.delete class method. ↵Hongli Lai (Phusion2008-09-211-0/+10
| | | | | | [#1086 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Multiparameter attributes skip time zone conversion for time-only columns ↵gbuesing2008-09-141-1/+1
| | | | [#1030 state:resolved]
* Fix ActiveRecord::Base.quote_bound_value for ActiveSupper::Multibyte::Chars ↵Manfred Stienstra2008-09-111-1/+1
| | | | | | | | | | values. - Adds String#acts_like_string? - Adds Chars#acts_like_string? Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1029 state:committed]
* Support :limit on update_all so that has_many with :limit can be safely updatedTarmo Tänav2008-09-101-3/+17
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Missing doc updatesDavid Heinemeier Hansson2008-09-091-1/+1
|
* Added find_last_by dynamic finder [status:committed #762]miloops2008-09-091-0/+1
| | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Revert "Revert "Raise UnknownAttributeError when unknown attributes are ↵Jeremy Kemper2008-09-081-1/+9
| | | | | | supplied via mass assignment"" This reverts commit 41efd73887c00ffd228b05d9346ec47a1f3759b9.
* Revert "Raise UnknownAttributeError when unknown attributes are supplied via ↵Jeremy Kemper2008-09-061-9/+1
| | | | | | mass assignment" This reverts commit 108db00aa90fe266564483ab301cf0669cae600f.
* Use a more sensible resolution on the new millisecond benchmarksDavid Heinemeier Hansson2008-09-051-1/+1
|
* Changed all benchmarking reports to be in millisecondsDavid Heinemeier Hansson2008-09-051-1/+1
|
* Merge docrailsPratik Naik2008-09-031-19/+42
|
* Some performance goodness for inheritable attributes.Clemens Kofler2008-09-031-7/+7
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Deprecate allow_concurrency and make it have no effectNick Sieger2008-08-291-19/+1
|
* Merge scoped :joins together instead of overwriting them. May expose scoping ↵Andrew White2008-08-281-10/+27
| | | | | | | | bugs in your code! [#501 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* add dynamic finder bang version to raise RecordNotFoundJosh Susser2008-08-251-1/+3
| | | | | | [#905 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* refactor dynamic finder name matching into its own classJosh Susser2008-08-251-72/+49
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* coerce blank strings to nil values for boolean and integer fieldsJosh Susser2008-08-221-5/+8
| | | | [#860 state:resolved]
* Merge commit 'sven/i18n' into i18nJeremy Kemper2008-08-221-3/+38
|\
| * Merge branch 'master' into i18nSven Fuchs2008-08-211-8/+20
| |\
| * | Added Base.human_name methodIain Hecker2008-08-201-0/+13
| | |
| * | Cleaned up ActiveRecord i18n scopingIain Hecker2008-08-141-4/+26
| | |
* | | Revert "Performance: freeze cached rows instead of duping"Jeremy Kemper2008-08-211-1/+1
| | | | | | | | | | | | This reverts commit cd8e653d5b18e6d3c3acc9930832f8e23945e392.
* | | Revert "coerce blank strings to nil values for boolean and integer fields"Jeremy Kemper2008-08-211-8/+5
| | | | | | | | | | | | | | | | | | This reverts commit aee14630d4dc0856e597794cc731fac68c2d2e34. [#860 state:incomplete]
* | | coerce blank strings to nil values for boolean and integer fieldsJosh Susser2008-08-211-5/+8
| |/ |/| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* | Fix generated WHERE IN query for named scopes. [#583 state:resolved]Philip Hallstrom2008-08-211-1/+1
| | | | | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* | Performance: freeze cached rows instead of dupingJeremy Kemper2008-08-181-1/+1
| |
* | Fixed STI type condition for eager loading of associationsTarmo Tänav2008-08-161-3/+4
| | | | | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* | Fixed Time/Date object serializationTarmo Tänav2008-08-121-2/+9
| | | | | | | | | | Time/Date objects used to be converted to_s instead of to_uaml which made them unserializable.
* | move logging of protected attribute removal into ↵Trevor Turk2008-08-121-1/+5
|/ | | | | | | log_protected_attribute_removal method Signed-off-by: Michael Koziarski <michael@koziarski.com> [#804 status:committed]
* Fix file permissionsTarmo Tänav2008-07-311-0/+0
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Raise UnknownAttributeError when unknown attributes are supplied via mass ↵Pratik Naik2008-07-311-1/+9
| | | | assignment
* Merge docrails changesPratik Naik2008-07-281-2/+27
|
* Set config.active_record.timestamped_migrations = false to have migrations ↵Nik Wakelin2008-07-171-0/+4
| | | | | | with numeric prefix instead of UTC timestamp. [#446 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Merge with docrails.Pratik Naik2008-07-161-5/+4
|
* update_counters should update nil values.miloops2008-07-151-1/+1
| | | | | | This allows counter columns with default null instead of requiring default 0. [#493 state:resolved]
* Allow conditions on multiple tables to be specified using hash.Pratik Naik2008-06-281-9/+15
| | | | | | | | | Examples: User.all :joins => :items, :conditions => { :age => 10, :items => { :color => 'black' } } Item.first :conditions => { :items => { :color => 'red' } } Note : Hash key in :conditions is referring to the actual table name or the alias defined in query.
* Include cache key in ModelNameJeremy Kemper2008-06-241-4/+4
|
* Fix column collision with named_scope and :joins. [#46 state:resolved]Mark Catley2008-06-221-1/+1
|
* Named bind variables can now be used with postgresql-style typecastsTarmo Tänav2008-06-221-3/+4
| | | | | For example :conditions => ['stringcol::integer = :var', { :var => 10 }] will no longer raise an exception about ':integer' having a missing value.
* Make Base.merge_conditions publicJeremy Kemper2008-06-171-14/+14
|
* Silence scope resolution warningsJeremy Kemper2008-06-111-4/+6
|
* Simplify ActiveRecord::Base#update_attributePratik Naik2008-06-071-4/+4
|