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
Fred Wu
19e68b4909
Fixed the SelectorAssertions documentation url.
2011-02-02 11:24:01 +11:00
Aaron Patterson
5b42e96602
make sure de-serialization happens on object instantiation
2011-02-01 15:23:55 -08:00
Aaron Patterson
a0fac71922
store the serialized column values in the @attributes hash
2011-02-01 14:25:47 -08:00
Aaron Patterson
ebe485fd8e
serialize can take an arbitrary code object
2011-02-01 14:25:47 -08:00
Aaron Patterson
ee34b4cf34
share column cache among subclasses, only look up columns per AR::Base subclass once
2011-02-01 14:25:46 -08:00
Aaron Patterson
a6cf6ec98b
move the coders to the serialized_attributes hash
2011-02-01 14:25:46 -08:00
Aaron Patterson
69600a9f97
avoid column lookup on subclasses, keep column info cached as table_name => column_list
2011-02-01 14:25:46 -08:00
Aaron Patterson
3cc2b77dc1
adding a YAML Column coder for YAML serialization to db columns
2011-02-01 14:25:46 -08:00
Aaron Patterson
0171de00b7
moving AR::ConnectionAdapters::Column to its own file
2011-02-01 14:25:46 -08:00
Aaron Patterson
65f11ff789
column will use coder to typecase value when it is available
2011-02-01 14:25:46 -08:00
Aaron Patterson
a7c2f6be30
coders can be assigned to columns
2011-02-01 14:25:46 -08:00
Aaron Patterson
6d5e3b86d5
namespace test so we can dry up constant lookup
2011-02-01 14:25:46 -08:00
Aaron Patterson
2f62084d42
dry up our case / when statements
2011-02-01 14:25:46 -08:00
Santiago Pastorino
86dc5987b2
add test to check class is being escaped in form_class
2011-02-01 19:17:31 -02:00
Andrei Bocan
15ad707852
Allow customization of form class for button_to
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-02-01 19:09:00 -02:00
Santiago Pastorino
6dc4538c95
Update to jQuery 1.5
...
Check out http://blog.jquery.com/2011/01/31/jquery-15-released/
for more information.
2011-02-01 18:44:44 -02:00
Santiago Pastorino
451ad38bb2
scope is always a Relation
2011-02-01 17:20:24 -02:00