Subba Rao Pasupuleti
fe2d65864e
no callbacks should be created for empty array [ #5289 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-12 13:13:41 -03:00
Subba Rao Pasupuleti
9df227983f
tidy up validations length code [ #5297 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-12 13:13:37 -03:00
Greg Campbell
d03a1249a0
Add missing ActiveModel::Validations require
...
[#5311 state: resolved]
ActiveModel::Validations uses Hash#except, but does not require it from
ActiveSupport. (This wasn't showing up in the tests, because it was
required in the helper, and was also required in
ActiveModel::Serialization).
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-12 13:13:33 -03:00
Neeraj Singh
9528aa9f86
Ensure we can nest include calls [ #5285 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-12 13:13:26 -03:00
Xavier Noria
4dcce5d06e
revises some autosave docs, style and content
2010-08-12 17:40:32 +02:00
Paco Guzman
ab68d4b52e
applied guidelines to "# =>"
2010-08-12 17:40:20 +02:00
Xavier Noria
1e6e868d8c
commit review: applies guidelines to "# =>"
2010-08-12 17:40:10 +02:00
Neeraj Singh
198bffe3be
updating documentation for named_scope and default_scope
2010-08-12 17:39:52 +02:00
Neeraj Singh
06af291346
adding more documentation for autosave option
2010-08-12 17:39:05 +02:00
José Valim
30ea923040
Make update_attribute behave as in Rails 2.3 and document the behavior intrinsic to its implementation.
2010-08-12 12:06:57 -03:00
Mark Turner
7325dd21b3
fixed indentation in test cases
...
Signed-off-by: wycats <wycats@gmail.com >
2010-08-11 23:56:11 -07:00
wycats
f2d22ecbb3
Replace snowman with utf8=✓
2010-08-11 18:37:06 -07:00
Paul Hieromnimon
1c970b8394
Raising exception if fixture file can't be found
2010-08-11 15:45:29 -07:00
Aaron Patterson
c8509d5303
subtracting blank strings is slightly faster than blank?
2010-08-11 15:44:54 -07:00
Xavier Noria
36cb62eb9d
AS guide: some revisions
2010-08-12 00:15:43 +02:00
Xavier Noria
bfd728182c
no need to assign if we are gonna return
2010-08-12 00:15:43 +02:00
Aaron Patterson
ff760dd6ce
avoid multiple hash lookups
2010-08-11 14:59:47 -07:00
Aaron Patterson
5352a89d50
dry up the hash dup and avoid sending nil values
2010-08-11 14:45:07 -07:00
Aaron Patterson
a56ee4c9a2
avoiding tap saves us time
2010-08-11 11:43:27 -07:00
Aaron Patterson
dac2b37b03
unless Array#empty? is faster than if Array#present?
2010-08-11 11:28:13 -07:00
Aaron Patterson
8464ee0650
stop using private methods
2010-08-11 11:24:59 -07:00
José Valim
e1b85c3bda
Ensure @config is not a reserved instance variable in controllers. [ #5342 state:resolved]
2010-08-11 10:27:11 -03:00
José Valim & Carlos Antonio da Silva
1fbcd5f5fc
layout_for works again with objects as specified in the documentation and Rails 2.3 [ #5357 state:resolved]
2010-08-11 10:27:11 -03:00
Nick Sieger
43b8722f4b
Missed one spot for --skip-active-record, which means that new Gemfile isn't set up right
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-08-11 00:43:49 -03:00
Gonçalo Silva
d9b77ddecd
added support for more printers
2010-08-10 10:24:00 -07:00
José Valim
6f88b82263
Revert "require_dependency should require using the normal mechanism if possible to avoid double-requires"
...
This was causing double requires since 991cd59a22 was reverted.
This reverts commit 8bf79739b4 .
2010-08-10 11:20:04 -03:00
Xavier Noria
b2eaac24c3
fixes a typo reported by rymai
2010-08-10 15:35:23 +02:00
Xavier Noria
5859f5eee1
AS guide: removes some duplication, and makes a second pass on method delegation
2010-08-10 11:53:27 +02:00
Xavier Noria
63ffec85b7
adds the AS guide to the guides index
2010-08-10 04:09:52 +02:00
Xavier Noria
ca3fc4b325
AS guide: documents Module#redefine_method
2010-08-10 03:59:48 +02:00
Xavier Noria
aaa52c6d1f
AS guide: documents Module#(instance_)method_names
2010-08-10 03:46:21 +02:00
Xavier Noria
68bed3a4ad
AS guide: documents Module#delegate
2010-08-10 03:29:26 +02:00
Xavier Noria
8968eecb93
AS guide: documents Process.daemon
2010-08-10 01:53:53 +02:00
Xavier Noria
3c404c56eb
AS guide: documents date/datetime/time arithmetic with durations
2010-08-10 01:31:23 +02:00
Jeremy Kemper
cbf89a378c
Merge remote branch 'brianmario/3-0-stable' into 3-0-stable
2010-08-09 16:12:33 -07:00
Brian Lopez
2d681838c0
move mysql2 adapter into core
2010-08-09 15:30:06 -07:00
Brian Lopez
b02751c961
ignore this test for mysql2
2010-08-09 15:29:59 -07:00
Brian Lopez
3ccf3504d2
skip the before_type_cast_on_datetime test entirely for mysql2
2010-08-09 15:29:53 -07:00
Brian Lopez
98384b1ce8
typo
2010-08-09 15:29:33 -07:00
Brian Lopez
a263a8ffd5
update tests for mysql2 support
2010-08-09 15:29:26 -07:00
wycats
dd7e872e85
Properly deprecate register_javascript_include_default and reset_javascript_include_default
2010-08-09 12:42:09 -07:00
wycats
f85b206e7a
rename _snowman to _e
2010-08-09 12:06:51 -07:00
wycats
22cbc3f0fa
Improve best_standards_support to use only IE=Edge in development mode
2010-08-09 11:48:53 -07:00
Xavier Noria
efb2bd0409
adds missing requires for Object#try
2010-08-09 15:14:00 +02:00
Xavier Noria
195e891954
form helpers guide: fixes an example
2010-08-09 14:11:37 +02:00
Xavier Noria
28d82bd2e9
adds URL to the body generated by the redirect macro in the routes mapper as per the RFC, extracts common test pattern into a test macro, adds a test to cover the :status option
2010-08-09 13:32:45 +02:00
Xavier Noria
4d4b865b11
AC guide: commit review, block examples go at column 0, use .example.com as example domain
2010-08-09 12:25:22 +02:00
Adam Meehan
5c109e243f
typo in AM
2010-08-09 12:25:11 +02:00
Daniel McNevin
f7996be0c7
updated the action_controller guide with the new session configuration options
2010-08-09 12:24:56 +02:00
Neeraj Singh
d55491c844
correcting wrong example
2010-08-08 18:34:58 +02:00