Jeremy Kemper
56bb5504dd
2.3.6 release
v2.3.6
2010-05-22 23:53:40 -07:00
Jeremy Kemper
d8f0a58dcb
Remove miscommit from 57337cd
2010-05-22 23:46:03 -07:00
Aaron Patterson
a637b5f447
backporting beda2d43 for newer sqlite-ruby bindings
...
Signed-off-by: Xavier Noria <fxn@hashref.com >
2010-05-22 20:52:15 +02:00
Xavier Noria
25ec61330b
1.9 compat: deprecated last_(month|year) in favor of prev_(month|year)
2010-05-19 00:59:02 +02:00
Jeremy Kemper
9d99e610be
Revert "Don't carry default value when changing column for a binary type on MySQL"
...
Broke mysql tests.
This reverts commit ddadcc7cf8 .
Conflicts:
activerecord/test/cases/migration_test.rb
[#3234 state:open]
2010-05-18 11:03:59 -07:00
Étienne Barrié
99bcce7ec1
make add_index and remove_index more resilient; new rename_index method; track database limits
...
[#3452 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-18 10:51:36 -07:00
Ian White
a5696e36c6
Nested records (re: autosave) are now updated even when the intermediate parent record is unchanged [ #4242 ]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-18 16:10:44 +02:00
José Valim
94878c61a3
Deprecate legacy CGI options in SessionStores.
2010-05-18 03:25:57 +02:00
Xavier Noria
bb2327d9ab
method rename to fix a broken test
2010-05-18 00:31:41 +02:00
Rizwan Reza
32b0b5f7b2
Deprecate Array#rand in favor of Array#random_element [ #4555 stated:committed]
...
Signed-off-by: Xavier Noria <fxn@hashref.com >
2010-05-17 23:56:44 +02:00
José Valim
76608b13d2
superclass_delegating_accessor does not accept options.
2010-05-17 12:37:42 +02:00
Jeremy Kemper
cd3d30d569
CI: bump rack to 1.1
2010-05-16 13:35:42 -07:00
Rizwan Reza
74206aeff2
Rack dependency bumped to 1.1.0, tests passing. [ #3558 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-16 22:19:25 +02:00
Wijnand Wiersma
5b1f4c51ce
Postgresql doesn't allow to change a string type column to a binary type. Skip this test for postgresql for now.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-16 15:15:16 +02:00
Jeff Kreeftmeijer
ec017e158a
Added assert_attribute_type to clean up GeneratedAttributeTest [ #2377 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-16 12:08:55 +02:00
Matthew Rudy Jacobs
5d979de1a9
when we run rake rails:freeze:edge update the value of the "REVISION" file rather than creating a new file "REVISION_ce706..." each time [ #1694 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-16 10:42:48 +02:00
Nobuhiro IMAI
e535b45c86
make fixture accessors private
...
prevent to be run fixture accessor (e.g. test_foos for TestFoo model) as a test case
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-16 10:35:23 +02:00
Neeraj Singh
3570f3e7f6
Fix broken integration test in 2.x [ #4565 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-16 10:32:53 +02:00
Jeff Kreeftmeijer
3568c5cee0
using :time_select when the attribute type is :time in the scaffold generator. [ #2377 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-16 10:32:15 +02:00
Elomar França
ddadcc7cf8
Don't carry default value when changing column for a binary type on MySQL [ #3234 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-16 10:30:47 +02:00
Lawrence Pit
0706bdce60
docs + test for each_error
...
[#3185 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-15 11:49:04 -07:00
Jeff Kreeftmeijer
5d7ad7ba41
make sure as is set before trying to build an #{as}_counter. [ #2804 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-15 11:18:31 -07:00
Neeraj Singh
22b020db3e
db:drop:all throws error when database does not exist [ #2997 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-15 10:33:52 -07:00
Jeff Kreeftmeijer
2de364636c
partial counters with :as [ #2804 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-15 10:32:45 -07:00
Josh Kalderimis
8e7a64d090
backported AR correction to find_each and find_in_batches to raise when the user uses select but does not specify the primary key
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-15 09:51:58 +02:00
José Valim
6949d6f54f
Remove deprecated tests according to 8e679f1
2010-05-14 23:43:21 +02:00
Santiago Pastorino
c4ef7bb2a0
to_json and to_xml tests added to ActiveResource
...
[#4529 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-12 13:40:09 -07:00
Pratik Naik
7cbc546d39
Use superclass_delegating_accessor for connection handlers
2010-05-12 17:43:02 +01:00
Jeremy Kemper
9ab1154523
Drop require removed by 8e679f1
2010-05-11 22:39:53 -07:00
Santiago Pastorino
ad73a3aec4
type_cast_calculated_value refactor: value is never a Fixnum here. Fix test since SQLite returns Float.
...
[#4514 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-11 22:28:36 -07:00
José Valim
8e679f1854
Remove i18n interpolation deprecation. It has been around since 2.2.
2010-05-11 22:13:03 +02:00
Pratik Naik
3c1bb40b6b
Make sure schema dumper doesnt throw up when there are no index lengths
2010-05-09 12:42:15 +01:00
Pratik Naik
77adb4bc20
Revert "Revert "Add index length support for MySQL [ #1852 state:resolved]" (breaks the build)"
...
This reverts commit eababa35cf .
2010-05-09 12:34:07 +01:00
Carl Lerche
eababa35cf
Revert "Add index length support for MySQL [ #1852 state:resolved]" (breaks the build)
...
This reverts commit 3616141fa2 .
2010-05-08 23:56:06 +03:00
Santiago Pastorino
555801c908
The intention here was to assign to different objects ht: Radar
2010-05-08 23:34:07 +03:00
Emili Parreno
3616141fa2
Add index length support for MySQL [ #1852 state:resolved]
...
Example:
add_index(:accounts, :name, :name => 'by_name', :length => 10)
=> CREATE INDEX by_name ON accounts(name(10))
add_index(:accounts, [:name, :surname], :name => 'by_name_surname', :length => {:name => 10, :surname => 15})
=> CREATE INDEX by_name_surname ON accounts(name(10), surname(15))
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2010-05-08 12:43:34 +01:00
Santiago Pastorino
f967b352d2
Make find_or_create and find_or_initialize work mixing explicit parameters and a hash. ht: Marc-André Lafortune
...
[#4457 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-07 13:29:51 -07:00
Santiago Pastorino
adcfb4e8bd
simple_format should return html_safe but not escape text, that's for rails_xss plugin [ #3767 state:committed]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-07 11:56:53 -07:00
Brian Lopez
6d1344de5e
add support for mysql2 adapter to dbconsole
...
[#4532 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-04 15:47:12 -07:00
Pratik Naik
f194d65f36
Use primary key in conditions, not 'id' [ #4395 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
Conflicts:
activerecord/test/cases/nested_attributes_test.rb
2010-05-04 22:45:16 +01:00
Jatinder Singh
aeff1719ab
AR JSON Serializer now supports custom root option.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-04 13:18:27 -07:00
Brian Lopez
6dbc75fd76
Allow pre-casted values (other than nil) to pass through from calculations un-touched
...
[#4514 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-04 12:27:24 -07:00
Pratik Naik
04fa5af6a6
Use class_inheritable_accessor for connection_handler
2010-05-04 17:52:53 +01:00
Marius Nuennerich
0d767fd24f
repair the activesupport message encryptor tests for me, do so in the same way as jeremy did with message verifier
...
[#4517 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-05-01 10:08:05 -07:00
Neeraj Singh
dcf0f97514
making rake:migrate VERSION=0 a noop called in succession. [ #2137 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-29 13:32:12 +02:00
Curtis Hawthorne
ce5af2fefe
Destroy respects optimistic locking.
...
Now works with :dependent => :destroy and includes unit tests for that
case. Also includes better error messages when updating/deleting stale
objects.
[#1966 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-27 21:52:22 -07:00
Joe Martinez
aa401bd75a
Add ActiveResource::Base.include_root_in_json, like Active Record, to serialize instances as hash of model name -> attributes hash rather than the bare attributes hash. [ #2584 state:committed]
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-26 15:19:03 -07:00
Jeremy Kemper
9e262de3d8
Fix backport error: wrong exception name
2010-04-24 19:38:10 -07:00
Jeremy Kemper
8716ee44e5
Fix unstated AS::Multibyte dependency
2010-04-24 17:52:12 -07:00
Cezary Baginski
ec7716abcd
actionpack: added missing encoding comments [ #4466 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-24 17:30:59 -07:00