Aaron Patterson
5f3cf4244d
connection pool can cache column, table, and primary key information
2011-02-04 18:14:59 -08:00
Santiago Pastorino
78d23edf9a
Remove stupid mistake
2011-02-04 21:49:56 -02:00
Santiago Pastorino
da2d24f7cf
git am is better here
2011-02-04 21:36:10 -02:00
Ben Orenstein
4b2889e771
Correct migration name the test is looking to match.
...
[#6375 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-04 20:25:13 -02:00
Edward Faulkner
909588d964
Fixing ordering of HABTM association deletion [ #6191 state:resolved]
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-04 19:39:59 -02:00
Aaron Patterson
df07760486
introduce a fake AR adapter for mocking database return values
2011-02-04 13:34:57 -08:00
german
adbae9aab8
fixed bug with nested resources within shallow scope
...
[#6372 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-04 17:07:51 -02:00
Kevin Skoglund
94175c0e39
Improve regex in rake db:migrate status [ #5940 state:resolved]
...
[#5940 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-04 12:59:06 -02:00
Aaron Patterson
89962d82f1
refactor a bunch of return / if to a case / when
2011-02-03 16:00:59 -08:00
Aaron Patterson
dde8933d60
add_limit_offset! is deprecated
2011-02-03 15:54:31 -08:00
Aaron Patterson
a88071e92a
just use the superclass implementation
2011-02-03 15:48:34 -08:00
Aaron Patterson
7423a71fc0
allow AR caches to be cleared, clear them on class reloading
2011-02-03 15:35:44 -08:00
Santiago Pastorino
082326deb5
module_eval is not needed here
2011-02-03 20:47:02 -02:00
Santiago Pastorino
6f4d9989dd
method_defined?, define_method and send accepts a string as argument
2011-02-03 20:37:12 -02:00
Franco Brusatti
d3cfee1182
removing generation of id in submit helper
...
[#6369 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-03 20:24:14 -02:00
Aaron Patterson
23a3ba4260
Revert "ARel only requires the connection from the AR class. Simply return the AR class rather than jump through hoops and store ivars"
...
This reverts commit d65e3b481e .
2011-02-03 14:04:21 -08:00
Ken Collins
95d5d9b6c4
The type_cast_calculated_value method will trust DB types before casting to a BigDecimal.
...
[#6365 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-03 20:00:51 -02:00
Santiago Pastorino
092a4e296d
just < 1.9 is fine and 1.9.1 is not supported
2011-02-03 19:27:43 -02:00
Gabriel Horner
c0b4db0c28
fix OrderedHash#each* methods to return Enumerators when called without a block [ #6366 state:resolved]
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-03 19:26:36 -02:00
Caleb Land
bca070ef2d
allow spaces and other characters in attribute names [ #4725 state:resolved]
...
* define the dynamically defined methods with
'define_method' instead of def
* wrap some string injected method names in quotes
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-03 19:05:17 -02:00
Aaron Patterson
d65e3b481e
ARel only requires the connection from the AR class. Simply return the AR class rather than jump through hoops and store ivars
2011-02-03 11:50:43 -08:00
Aaron Patterson
1a15fda021
reduce cache misses on STI subclasses
2011-02-03 11:12:07 -08:00
Aaron Patterson
a5d8f0be00
this method should be private
2011-02-03 09:09:27 -08:00
Guillermo Álvarez
351331fb34
Make serialized columns with explicit object_type return a new instance of the object instead of nil
2011-02-03 09:08:45 -08:00
John Firebaugh
080345baca
Ruby 1.8.7+ provides to_date/to_datetime, AS just makes them public.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-03 13:12:03 -02:00
John Firebaugh
bf0395837f
Preserve fractional seconds in DateTime#to_time
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-03 13:11:56 -02:00
Anton Astashov
c1c6f29214
Add a test for 'render :layout'
...
To make sure it will show block contents if it is placed after 'render
:partial'
[#5557 state:resolved]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-03 12:55:32 -02:00
Tim Pope
e89ba63b88
Drop remaining script/plugin sources references
...
[#3742 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-03 00:33:30 -02:00
Santiago Pastorino
434aa09560
Fix tests providing valid JSON
2011-02-02 20:53:03 -02:00
Xavier Noria
e99e859a04
revises a metal example
2011-02-02 23:27:27 +01:00
Xavier Noria
33643bcf53
copy-edits 2446b13
2011-02-02 23:04:12 +01:00
Stephen Celis
a0757e00f3
Protocol-relative URL support.
...
[#5774 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-02 19:09:44 -02:00
Xavier Noria
a96a9a4948
Merge branch 'master' of git://github.com/lifo/docrails
2011-02-02 22:04:11 +01:00
Maxime RETY
68e3fb8109
Fix JSON decoding of newline character with Yaml backend [ #3479 state:resolved]
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-02 18:57:48 -02:00
Aaron Patterson
8bfa8e7cbe
this method should never return nil
2011-02-02 10:25:53 -08:00
Aaron Patterson
3fc598095e
just require mysql2
2011-02-02 10:25:53 -08:00
Aaron Patterson
95b9d71023
using mysql2 from git
2011-02-02 10:25:53 -08:00
Santiago Pastorino
12b2f8b040
Delete blank lines in migration generator
2011-02-02 16:20:03 -02:00
Aaron Patterson
70b9db173e
adding mysql2 adapter
2011-02-02 10:17:39 -08:00
Raimonds Simanovskis
9e23835cb8
fix for test_read_attributes_before_type_cast_on_datetime - Oracle adapter also returns Time value
2011-02-02 09:06:42 -08:00
Gabriel Horner
9a0f43d3c1
OrderedHash#each* methods return self like Hash does [ #6364 state:resolved]
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-02 13:40:36 -02:00
Bernerd Schaefer
2446b1307e
Provide documentation for ActionController::Metal
2011-02-02 16:02:28 +01:00
Franck Verrot
8dcacd0cc7
Refactor clear_timestamp_attributes to use the newly created all_timestamp_attributes_in_model
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-02 12:45:25 -02:00
Franck Verrot
a5b03e9c7a
Implement and test private method all_timestamp_attributes_in_model
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-02 12:45:14 -02:00
Franck Verrot
47315760bc
Test timestamp_attributes_for_update_in_model that was already in place
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-02 12:45:03 -02:00
Franck Verrot
5178e64175
Added timestamp_attributes_for_create_in_model
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-02 12:44:53 -02:00
Franck Verrot
598b32c581
Test private method all_timestamp_attributes
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-02 12:44:41 -02:00
Franck Verrot
253f5a15f4
Test private method timestamp_attributes_for_update
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-02 12:44:25 -02:00
Franck Verrot
6d40d527e8
Test private method timestamp_attributes_for_create
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-02 12:44:05 -02:00
Michał Łomnicki
4e39072017
Configurable generation of add_index for references columns
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-01 22:50:51 -02:00