Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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. | ||||
* | Include cache key in ModelName | Jeremy Kemper | 2008-06-24 | 1 | -4/+4 |
| | |||||
* | Fix column collision with named_scope and :joins. [#46 state:resolved] | Mark Catley | 2008-06-22 | 1 | -1/+1 |
| | |||||
* | Named bind variables can now be used with postgresql-style typecasts | Tarmo Tänav | 2008-06-22 | 1 | -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 public | Jeremy Kemper | 2008-06-17 | 1 | -14/+14 |
| | |||||
* | Silence scope resolution warnings | Jeremy Kemper | 2008-06-11 | 1 | -4/+6 |
| | |||||
* | Simplify ActiveRecord::Base#update_attribute | Pratik Naik | 2008-06-07 | 1 | -4/+4 |
| | |||||
* | Generate less garbage when expanding range bind variables in conditions | Jeremy Kemper | 2008-06-06 | 1 | -3/+8 |
| | |||||
* | Namespace Inflector, Dependencies, OrderedOptions, and TimeZone under ↵ | Joshua Peek | 2008-06-03 | 1 | -1/+1 |
| | | | | ActiveSupport [#238 state:resolved] | ||||
* | Add ActiveRecord::Base.sti_name that checks ↵ | rick | 2008-05-31 | 1 | -4/+12 |
| | | | | ActiveRecord::Base#store_full_sti_class? and returns either the full or demodulized name. [rick] [#114 state:resolved] | ||||
* | Ensure :select passed in options overrides the one from the scope. [#239 ↵ | Andrew White | 2008-05-29 | 1 | -1/+1 |
| | | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Merge docrails. | Pratik Naik | 2008-05-25 | 1 | -101/+113 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> |