Dudley Flanders
bf563bd904
Trivial doc update on nested attributes delete renaming
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-30 01:40:51 +02:00
Joey Aghion
715b34fdff
use supplied primary key when eager-loading belongs_to associations rather than default primary key
...
[#765 ]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-29 15:33:45 -07:00
Ernie Miller
00b95eb265
belongs_to associations now honor :primary_key option for joins
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-29 15:33:37 -07:00
Andrew White
03d5d0b5f5
Add the ability to specify table_name_prefix on individual modules
...
[#4032 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-29 08:55:21 -07:00
Santiago Pastorino
bc2af911f9
backport of inconsistency with cattr_reader and matter_reader with some tweaks
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-28 14:03:27 -07:00
Santiago Pastorino
0f18904e2b
flatten not needed here
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-28 14:03:27 -07:00
Santiago Pastorino
cf7ed7cf2d
Time marshalling backported [ #4286 state:committed]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-28 14:03:07 -07:00
Joe Rafaniello
c1b2200085
Marshaling a time object added an instance variable to the object which affected the quoting of serialized attributes because the to_yaml of the original object did not match the to_yaml of the marshaled one. Also, Marshal.dump was modifying the source object which the client may not be aware of.
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-27 04:33:19 -07:00
José Valim
157c1808b9
Added compatibility to Ruby 1.9.2.
2010-03-26 20:21:07 +01:00
Emilio Tagua
ac7b5a23ba
Allow deprecation messages with or without a final period.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-25 15:44:16 +01:00
Rodrigo Kochenburger
0022fa309b
Set mailer template_root as absolute path [ #2263 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-25 15:36:12 +01:00
Tom Lea
97e07a88fe
Fix incorrect relative paths being used when looking up templates.
...
The bug will manifest itself by failing to locate templates when running tests,
or when running as a daemon (from /).
It relates the the different behavior of ActionView::Template::Path#to_s and
ActionView::Template::Path#to_str when a RAILS_ROOT is defined. #to_s reports
a path relative to the root, and #to_str reports an absolute path.
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-25 15:33:05 +01:00
Santiago Pastorino
629afe9f19
ActionView::SafeBuffer should be there for backwards compatibility [ #4241 state:committed]
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2010-03-22 14:07:53 +13:00
Bruno Michel
26f2cce232
button_to should generate an html_safe string
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2010-03-22 14:07:42 +13:00
Jeremy Kemper
c0137f62d4
Don't rely on Active Support being loaded here
2010-03-16 19:45:00 -07:00
Jeremy Kemper
f175d19e2a
Bundler returns a Pathname from #loaded_from; work around it
2010-03-16 17:55:25 -07:00
Santiago Pastorino
9cfa87519d
scope_key_by_partial fix for Ruby 1.9 when there's virtual_path
...
[#4202 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-16 16:05:24 -07:00
Santiago Pastorino
2310aef29b
translation method of TranslationHelper module returns always SafeBuffer [ #4194 status:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-16 13:49:59 -07:00
James Golick
27aa22826c
Improve performance of multibyte utils.
...
Switch from using String#match to using String#=~. There's no need to
generate a MatchData for each iteration since we're not using it.
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-16 10:04:33 -07:00
Manfred Stienstra
2d3c58068c
Improve performance of Multibyte::Utils.
...
Replace explicit for-loops by faster enumeration methods.
[#3158 ]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-16 10:04:33 -07:00
Santiago Pastorino
374e49b467
Change array entries to safe doesn't worth then the array is joined as a string losing the safe property of his entries
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-16 13:14:58 +01:00
Santiago Pastorino
ebf300f41b
object_and_class_ext_test warnings removed
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-15 19:07:31 -07:00
Jeremy Kemper
b3d32a5b28
to_str works here
2010-03-15 11:19:46 -07:00
Bas Van Klinkenberg
b99914cc3e
Fixed a bug in JSON decoding with Yaml backend, where a combination of dates, escaped or unicode encoded data and arrays would make the parser fail with a ParseError exception.
...
[#2831 ]
Signed-off-by: Yehuda Katz <wycats@gmail.com >
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-14 21:50:22 -07:00
Jeremy Kemper
9b209e8cb8
read_ and write_fragment cache preserve html safety yet cache strings only
2010-03-14 18:55:13 -07:00
Santiago Pastorino
056f957b22
There's a Ruby issue with File.basename different versions returns different things, so we shouldn't test that
...
[#4174 ]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-14 13:37:30 -07:00
Jeremy Kemper
40c393cb84
Be sure to pass through args to to_yaml
2010-03-11 18:37:36 -08:00
Jeremy Kemper
eed8a8863d
Write strings to fragment cache, not outputbuffers
2010-03-11 17:32:26 -08:00
Jeremy Kemper
ec760a57d1
OutputBuffer#to_yaml should return string yaml, not some custom class dump
2010-03-11 17:08:33 -08:00
Sam Ruby
cbc0201a3e
Add deprecation warning for overwrite_params and remove rdoc
...
[#4073 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-10 16:26:04 -08:00
Jeremy Kemper
abb8fbde73
Disprefer JSONGem decoder since it only decodes JSON objects
2010-03-09 11:06:31 -08:00
Aaron Patterson
5a806f6759
converting inject to each and map
...
[#4119 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-06 20:32:19 -08:00
Stijn Mathysen
f6f75e84c5
Removed the + sign as an accepted character from the parameterize method, as a + sign is interpreted by the browser as a space, possibly resulting in a "ArgumentError: illegal character in key"
...
[#4080 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-05 14:10:37 -08:00
Santiago Pastorino
d3a8152203
Adds disable option to date_helpers generated hidden fields when html_options specifies it. ht by Marc Schütz
...
[#3807 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-05 13:49:23 -08:00
Jeremy Kemper
3969148a13
Deprecate omitting the leading slash on a path arg to assert_redirected_to
2010-03-02 14:14:37 -08:00
Bryan Helmkamp
1e64cdf8c9
Bump version constants to 2.3.6 to more easily support generating prerelease gems
2010-03-01 18:24:55 -08:00
Jeremy Kemper
f56a1631be
Typo: _tasks -> _paths
2010-02-26 08:54:42 -08:00
Jeremy Kemper
f4ce042795
Add *.gem, pkg, and .bundle to .gitignore. Remove globs that should be in user's global ignores.
2010-02-26 08:10:33 -08:00
Jeremy Kemper
ed7322f336
Deprecate toplevel plugins tasks in favor of lib/tasks for Rails 3 forward compat
2010-02-26 08:09:41 -08:00
Tobias Bielohlawek
b06e5dce97
fixed a 'RecordNotFound' bug when calling 'reload' on a object which doesn't met the default_scope conditions, added test [ #3166 status:resolved]
...
The reload method didn't made use of 'with_exclusive_scope' when reloading the object. This lead to a RecordNotFound exception, in case the object doesn't met the default_scope condition (anymore) - which is obviously a bug. This quick fix makes use of with_exclusive_scope in the reload method as well. See test for full example.
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-02-26 11:39:15 +01:00
Jeremy Kemper
5695b1bdd9
Fill in for I18n.normalize_translation_keys removed from 0.3.4
2010-02-25 15:16:49 -08:00
Christoph Schiessl
268c9040d5
remove rubygems (version >= 1.3.6) deprecation message by replacing Gem::Dependency#version_requirements with Gem::Dependency#requirement
...
[#4026 state:committed]
Signed-off-by: Prem Sichanugrist <s@sikachu.com >
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-02-25 12:53:14 -08:00
Jeremy Kemper
63a7ef0d74
Use Object#singleton_class instead of #metaclass. Prefer Ruby's choice.
2010-02-25 11:11:09 -08:00
Jeremy Kemper
3a3fa7f817
Missed singleton_class
2010-02-25 10:54:36 -08:00
Jeremy Kemper
5b4e7c3fa0
Missing fileutils require
2010-02-24 18:54:49 -08:00
Santiago Pastorino
0307dbaba9
add time_separator for minutes only if minutes aren't hidden
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-02-24 18:41:29 -08:00
Santiago Pastorino
39bcf14b34
missing html_safe added and tests
2010-02-19 15:34:18 -08:00
Santiago Pastorino
24911757de
missings html_safe added
2010-02-19 14:36:49 -08:00
Santiago Pastorino
64d28f61ad
ruby 1.9 array.to_s returns a string representing an escaped array
2010-02-19 14:04:03 -08:00
Santiago Pastorino
397262a4ee
i18n translate with arrays issue solved
2010-02-19 14:03:50 -08:00