Patrick Joyce
|
4851ca9e13
|
Generate proper :counter_sql from :finder_sql when there is a newline character immediately following 'SELECT' [#2118 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-06-21 22:07:23 +01:00 |
|
Raimonds Simanovskis
|
63091cef2e
|
disabled base_test.rb tests that were not Oracle compatible (TIME datatype is not supported on Oracle, UPDATE does not support ORDER BY) _before_type_cast on Oracle returns Time and not String added Oracle specific schema definition that was missing for test_default_values test
Signed-off-by: Michael Koziarski <michael@koziarski.com>
|
2009-06-09 20:26:55 +12:00 |
|
Jeremy Kemper
|
e8550ee032
|
Cherry-pick core extensions
|
2009-05-13 12:00:15 -07:00 |
|
Emilio Tagua
|
a841cd2503
|
Fix models load order to be able to run unit tests.
[#2550 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
|
2009-04-23 16:02:11 -07:00 |
|
Alex Pooley
|
504d16ccdf
|
Add microsecond support for sqlite adapter [#1982 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-04-21 18:05:07 +01:00 |
|
Pratik Naik
|
2381f6f3dc
|
Specify :group with the table name for it to work on sqlite3
|
2009-04-21 13:11:56 +01:00 |
|
Rob Anderton
|
faf4ba6b79
|
Allow find(:last) :order be a symbol [#2024 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-03-09 12:52:14 +00:00 |
|
Jeremy Kemper
|
1c36172c13
|
Ruby 1.9 compat: rename deprecated assert_raises to assert_raise.
[#1617 state:resolved]
|
2009-03-08 13:11:58 -07:00 |
|
Pratik Naik
|
fd3ccbe955
|
DRY with_kcode in Active Record tests
|
2009-03-07 11:06:44 +00:00 |
|
Mike Gunderloy
|
c653f700d3
|
Fix that scoped find with :group and :having [#2006 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2009-02-28 17:35:58 +00:00 |
|
Pratik Naik
|
74871961ec
|
Add array id support to Model.update_counters. [#1254 state:resolved] [Carlos Júnior]
|
2009-01-28 19:20:55 +00:00 |
|
Yaroslav Markin
|
6e98adfc8e
|
ActiveRecord::Base#new_record? now returns false for existing records (was nil) [#1219 state:committed]
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
|
2008-12-27 14:36:11 +01:00 |
|
Luis Hurtado
|
63aac33833
|
Ensure of Model#create support custom updated_at and updated_on attributes [#1612 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-12-22 15:19:33 +00:00 |
|
Ken Collins
|
8e4624be9e
|
Remove SQL Server cases from tests for latest adapter work to pass rails expected behavior.
Signed-off-by: Michael Koziarski <michael@koziarski.com>
|
2008-11-19 18:00:56 +01:00 |
|
David Heinemeier Hansson
|
c94ba8150a
|
Fixed that serialized strings should never be type-casted (i.e. turning "Yes" to a boolean)(Andreas Korth) [#857 state:committed]
|
2008-10-27 17:16:45 +01:00 |
|
Michael Koziarski
|
638bd19c7f
|
Merge branch 'patches' into multibyte
|
2008-09-22 21:35:35 +02:00 |
|
Hongli Lai (Phusion
|
46939a9b5a
|
Add Model#delete instance method, similar to Model.delete class method. [#1086 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-09-21 22:53:44 +01:00 |
|
Manfred Stienstra
|
52f8c04e1e
|
Fix a test that assumes .mb_chars to always return an instance of the proxy_class.
|
2008-09-21 17:30:16 +02:00 |
|
Manfred Stienstra
|
7329990d86
|
Change all calls to String#chars to String#mb_chars. Remove a exception for Ruby <= 1.9.
|
2008-09-21 17:27:25 +02:00 |
|
gbuesing
|
d95943b276
|
Multiparameter attributes skip time zone conversion for time-only columns [#1030 state:resolved]
|
2008-09-14 18:16:50 -05:00 |
|
Tarmo Tänav
|
7c9851dbb6
|
Support :limit on update_all so that has_many with :limit can be safely updated
Signed-off-by: Michael Koziarski <michael@koziarski.com>
|
2008-09-10 13:41:49 +02:00 |
|
Jeremy Kemper
|
4f6875296f
|
Revert "Revert "Raise UnknownAttributeError when unknown attributes are supplied via mass assignment""
This reverts commit 41efd73887c00ffd228b05d9346ec47a1f3759b9.
|
2008-09-08 09:45:26 -07:00 |
|
Jeremy Kemper
|
41efd73887
|
Revert "Raise UnknownAttributeError when unknown attributes are supplied via mass assignment"
This reverts commit 108db00aa90fe266564483ab301cf0669cae600f.
|
2008-09-06 21:01:45 -07:00 |
|
Nick Sieger
|
7ba2872615
|
Deprecate verification_timeout and verify before reset
Signed-off-by: Michael Koziarski <michael@koziarski.com>
|
2008-09-04 14:36:09 +02:00 |
|
Nick Sieger
|
ca6d71753f
|
Deprecate allow_concurrency and make it have no effect
|
2008-08-29 14:12:12 -05:00 |
|
Jeremy Kemper
|
842d55cb16
|
fix another ordering failure
|
2008-08-26 00:02:22 -07:00 |
|
Josh Susser
|
e48e77e022
|
coerce blank strings to nil values for boolean and integer fields
[#860 state:resolved]
|
2008-08-22 16:26:40 -07:00 |
|
Tarmo Tänav
|
a5aad2e81f
|
Fixed Time/Date object serialization
Time/Date objects used to be converted to_s instead of to_uaml
which made them unserializable.
|
2008-08-12 20:29:07 -07:00 |
|
Tarmo Tänav
|
82343859d5
|
Added missing fixtures for tests which fail to run independently if run after schema reset
Signed-off-by: Michael Koziarski <michael@koziarski.com>
|
2008-08-04 11:50:15 +02:00 |
|
Tarmo Tänav
|
656f0e7c6c
|
Fix file permissions
Signed-off-by: Joshua Peek <josh@joshpeek.com>
|
2008-07-31 16:36:23 -05:00 |
|
Pratik Naik
|
108db00aa9
|
Raise UnknownAttributeError when unknown attributes are supplied via mass assignment
|
2008-07-31 15:56:46 +01:00 |
|
miloops
|
459e5817a5
|
update_counters should update nil values.
This allows counter columns with default null instead of requiring default 0.
[#493 state:resolved]
|
2008-07-15 16:21:11 -07:00 |
|
Joshua Peek
|
c08547d226
|
Namespace Inflector, Dependencies, OrderedOptions, and TimeZone under ActiveSupport [#238 state:resolved]
|
2008-06-03 13:32:53 -05:00 |
|
David Heinemeier Hansson
|
dd120ede53
|
Added block-setting of attributes for Base.create like Base.new already has (Adam Meehan) [#39 state:resolved]
|
2008-04-30 23:14:32 -05:00 |
|
David Heinemeier Hansson
|
0a6980f2dc
|
Let Base.all use conditions etc like first/last
|
2008-04-28 13:27:52 -05:00 |
|
Frederick Cheung
|
a4fc93c3a9
|
Use schema.rb for all databases
Move adapter specific schema into their own files
Signed-off-by: Michael Koziarski <michael@koziarski.com>
|
2008-04-22 13:55:13 +12:00 |
|
Jeremy Kemper
|
6b9448cdd2
|
Partial updates include only unsaved attributes. Off by default; set YourClass.partial_updates = true to enable.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9157 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-31 01:10:04 +00:00 |
|
Geoff Buesing
|
458fd10483
|
Removing unnecessary uses_tzinfo helper from tests, given that TZInfo is now bundled
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9150 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-30 23:01:06 +00:00 |
|
Jeremy Kemper
|
6b5fe9c644
|
Fix some mistaken dependencies among AR unit tests. Closes #11425 [thechrisoshow]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9118 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-28 20:21:20 +00:00 |
|
Pratik Naik
|
533da24bbc
|
Make sure ActiveRecord tests can run individually. Closes #11425 [thechrisoshow, h-lame]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9109 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-28 11:55:01 +00:00 |
|
David Heinemeier Hansson
|
c6f2af5c31
|
Added ActiveRecord#Base.all/first/last as aliases for find(:all/:first/:last) (closes #11413) [nkallen, thechrisoshow]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9085 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-24 19:59:22 +00:00 |
|
Rick Olson
|
081ddb6f24
|
Merge the has_finder gem, renamed as 'named_scope'. Closes #11404 [nkallen]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9084 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-24 02:50:02 +00:00 |
|
David Heinemeier Hansson
|
d5a4d5abb4
|
Added ActiveRecord::Base.find(:last) (closes #11338) [miloops]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9012 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-12 21:26:02 +00:00 |
|
Michael Koziarski
|
63173630db
|
Revert to previous mysql-specific assertion, and only run the test on mysql.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8913 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-20 05:30:16 +00:00 |
|
Michael Koziarski
|
aa088e05dc
|
remove implicit assumption about mysql in the assertion
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8912 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-20 05:14:46 +00:00 |
|
Michael Koziarski
|
e32149ad60
|
Correct typo in before_type_cast code. Closes #11165 [amishyn]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8898 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-19 21:01:10 +00:00 |
|
Geoff Buesing
|
2920bd22df
|
ActiveRecord::Base#instantiate_time_object only uses Time.zone when Base.time_zone_aware_attributes is true; leverages Time#time_with_datetime_fallback for readability
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8882 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-16 20:47:01 +00:00 |
|
Michael Koziarski
|
08a4c9979d
|
Remove options from the attributes method, tidy up the implementation. Closes #11093 [juanjo.bazan, Koz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8863 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-13 02:19:46 +00:00 |
|
Geoff Buesing
|
c9402b2277
|
Multiparameter attributes for time columns fail over to DateTime when out of range of Time
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8855 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-10 22:46:31 +00:00 |
|
Michael Koziarski
|
cfb8ba0003
|
Add uses_tzinfo to active record tests to prevent breaking the cc.rb build etc. Closes #11034 [mpalmer]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8808 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-06 22:26:47 +00:00 |
|