Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fix default_scope to work in combination with named scopes | Tom Stuart | 2008-11-17 | 1 | -1/+1 | |
| | | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com> | |||||
* | Ensure shared default_scoping stack is duped before assigning to thread local | Joshua Peek | 2008-11-16 | 1 | -1/+1 | |
| | ||||||
* | Added default_scope to Base [#1381 state:committed] (Paweł Kondzior) | Pratik Naik | 2008-11-16 | 1 | -1/+15 | |
| | ||||||
* | Revert "Added default_scope to Base [#1381 state:committed] (Paweł ↵ | David Heinemeier Hansson | 2008-11-16 | 1 | -10/+0 | |
| | | | | | | Kondzior)" -- won't gel with threads. This reverts commit ff594b2bc94ff2a942fe6ca05672387722dee686. | |||||
* | Added default_scope to Base [#1381 state:committed] (Paweł Kondzior) | David Heinemeier Hansson | 2008-11-16 | 1 | -0/+10 | |
| | ||||||
* | Moved the * strings out of construct_finder_sql to a new default_select ↵ | Will Bryant | 2008-11-15 | 1 | -1/+9 | |
| | | | | | | | method so it can be overridden by plugins cleanly Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1371 state:resolved] | |||||
* | Fix memory leak issue in ActiveRecord scoped_methods | Joshua Peek | 2008-11-06 | 1 | -2/+1 | |
| | ||||||
* | Make #destroy write 1 line into log (instead of 3) (Dmitry Sokurenko) [#689 ↵ | David Heinemeier Hansson | 2008-10-29 | 1 | -4/+5 | |
| | | | | status:committed] | |||||
* | Fixed that serialized strings should never be type-casted (i.e. turning ↵ | David Heinemeier Hansson | 2008-10-27 | 1 | -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 Miller | 2008-10-24 | 1 | -2/+2 | |
| | | | | | | find_or_create_by_ automatic finder. [#1224 state:committed] | |||||
* | Merge docrails | Pratik Naik | 2008-10-16 | 1 | -1/+2 | |
| | ||||||
* | Merge docrails | Pratik Naik | 2008-10-05 | 1 | -26/+124 | |
| | ||||||
* | Dynamic finders should use the ActiveRecord::Base::find method instead of ↵ | Eloy Duran | 2008-10-03 | 1 | -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 Labs | 2008-09-24 | 1 | -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 (Phusion | 2008-09-21 | 1 | -0/+10 | |
| | | | | | | [#1086 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Multiparameter attributes skip time zone conversion for time-only columns ↵ | gbuesing | 2008-09-14 | 1 | -1/+1 | |
| | | | | [#1030 state:resolved] | |||||
* | Fix ActiveRecord::Base.quote_bound_value for ActiveSupper::Multibyte::Chars ↵ | Manfred Stienstra | 2008-09-11 | 1 | -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 updated | Tarmo Tänav | 2008-09-10 | 1 | -3/+17 | |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | |||||
* | Missing doc updates | David Heinemeier Hansson | 2008-09-09 | 1 | -1/+1 | |
| | ||||||
* | Added find_last_by dynamic finder [status:committed #762] | miloops | 2008-09-09 | 1 | -0/+1 | |
| | | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com> | |||||
* | Revert "Revert "Raise UnknownAttributeError when unknown attributes are ↵ | Jeremy Kemper | 2008-09-08 | 1 | -1/+9 | |
| | | | | | | supplied via mass assignment"" This reverts commit 41efd73887c00ffd228b05d9346ec47a1f3759b9. | |||||
* | Revert "Raise UnknownAttributeError when unknown attributes are supplied via ↵ | Jeremy Kemper | 2008-09-06 | 1 | -9/+1 | |
| | | | | | | mass assignment" This reverts commit 108db00aa90fe266564483ab301cf0669cae600f. | |||||
* | Use a more sensible resolution on the new millisecond benchmarks | David Heinemeier Hansson | 2008-09-05 | 1 | -1/+1 | |
| | ||||||
* | Changed all benchmarking reports to be in milliseconds | David Heinemeier Hansson | 2008-09-05 | 1 | -1/+1 | |
| | ||||||
* | Merge docrails | Pratik Naik | 2008-09-03 | 1 | -19/+42 | |
| | ||||||
* | Some performance goodness for inheritable attributes. | Clemens Kofler | 2008-09-03 | 1 | -7/+7 | |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Deprecate allow_concurrency and make it have no effect | Nick Sieger | 2008-08-29 | 1 | -19/+1 | |
| | ||||||
* | Merge scoped :joins together instead of overwriting them. May expose scoping ↵ | Andrew White | 2008-08-28 | 1 | -10/+27 | |
| | | | | | | | | bugs in your code! [#501 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | add dynamic finder bang version to raise RecordNotFound | Josh Susser | 2008-08-25 | 1 | -1/+3 | |
| | | | | | | [#905 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | refactor dynamic finder name matching into its own class | Josh Susser | 2008-08-25 | 1 | -72/+49 | |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | coerce blank strings to nil values for boolean and integer fields | Josh Susser | 2008-08-22 | 1 | -5/+8 | |
| | | | | [#860 state:resolved] | |||||
* | Merge commit 'sven/i18n' into i18n | Jeremy Kemper | 2008-08-22 | 1 | -3/+38 | |
|\ | ||||||
| * | Merge branch 'master' into i18n | Sven Fuchs | 2008-08-21 | 1 | -8/+20 | |
| |\ | ||||||
| * | | Added Base.human_name method | Iain Hecker | 2008-08-20 | 1 | -0/+13 | |
| | | | ||||||
| * | | Cleaned up ActiveRecord i18n scoping | Iain Hecker | 2008-08-14 | 1 | -4/+26 | |
| | | | ||||||
* | | | Revert "Performance: freeze cached rows instead of duping" | Jeremy Kemper | 2008-08-21 | 1 | -1/+1 | |
| | | | | | | | | | | | | This reverts commit cd8e653d5b18e6d3c3acc9930832f8e23945e392. | |||||
* | | | Revert "coerce blank strings to nil values for boolean and integer fields" | Jeremy Kemper | 2008-08-21 | 1 | -8/+5 | |
| | | | | | | | | | | | | | | | | | | This reverts commit aee14630d4dc0856e597794cc731fac68c2d2e34. [#860 state:incomplete] | |||||
* | | | coerce blank strings to nil values for boolean and integer fields | Josh Susser | 2008-08-21 | 1 | -5/+8 | |
| |/ |/| | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | |||||
* | | Fix generated WHERE IN query for named scopes. [#583 state:resolved] | Philip Hallstrom | 2008-08-21 | 1 | -1/+1 | |
| | | | | | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | | Performance: freeze cached rows instead of duping | Jeremy Kemper | 2008-08-18 | 1 | -1/+1 | |
| | | ||||||
* | | Fixed STI type condition for eager loading of associations | Tarmo Tänav | 2008-08-16 | 1 | -3/+4 | |
| | | | | | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | | Fixed Time/Date object serialization | Tarmo Tänav | 2008-08-12 | 1 | -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 Turk | 2008-08-12 | 1 | -1/+5 | |
|/ | | | | | | | log_protected_attribute_removal method Signed-off-by: Michael Koziarski <michael@koziarski.com> [#804 status:committed] | |||||
* | Fix file permissions | Tarmo Tänav | 2008-07-31 | 1 | -0/+0 | |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | |||||
* | Raise UnknownAttributeError when unknown attributes are supplied via mass ↵ | Pratik Naik | 2008-07-31 | 1 | -1/+9 | |
| | | | | assignment | |||||
* | Merge docrails changes | Pratik Naik | 2008-07-28 | 1 | -2/+27 | |
| | ||||||
* | Set config.active_record.timestamped_migrations = false to have migrations ↵ | Nik Wakelin | 2008-07-17 | 1 | -0/+4 | |
| | | | | | | with numeric prefix instead of UTC timestamp. [#446 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Merge with docrails. | Pratik Naik | 2008-07-16 | 1 | -5/+4 | |
| | ||||||
* | update_counters should update nil values. | miloops | 2008-07-15 | 1 | -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 Naik | 2008-06-28 | 1 | -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. |