- 07 8月, 2009 25 次提交
-
-
由 José Valim 提交于
-
由 José Valim 提交于
Add destroyed? to ActiveRecord, include tests for polymorphic urls for destroyed objects and refactor mime responds tests and documentation.
-
由 José Valim 提交于
-
由 José Valim 提交于
-
-
由 Yehuda Katz 提交于
* It is not possible to always pre-determine the layout before going to ActionView. This was *already* broken for render :partial => @object, :layout => true. This is now handled by overriding render_to_body in layouts.rb and manually injecting the partial's response. This needs to be done in ActionController since ActionController knows enough to get _layout_for_option. There is probably a better abstraction here. * As a result, all partial rendering can correctly restrict their layouts to the mime type of the rendered partial. This could have previously caused a bug in some edge cases. * If other layout-like options are added, they might need to add special code for the case of render :partial. We should try to think of an alternate solution, if possible, but this works for the cases we know of now.
-
-
由 Yehuda Katz 提交于
-
由 Yehuda Katz 提交于
* TODO: Review ActionController calling render_template for certain partials. Might we be able to save logic by always delegating to AV's render_partial?
-
由 Yehuda Katz 提交于
* _render_single_template, which renders a template without layout * _render_partial_unknown_type, which renders a partial of unknown type (the entry method for most partial rendering; supports strings, objects, and collections) * _render_partial_object, which renders a partial for a single object. * extracted _render_partial_path so it can be used to render the spacer without going through the public render :partial
-
由 Yehuda Katz 提交于
* rename _render_partial to _render_partial_unknown_type to reflect that for this call, we don't know the type. * Merge _render_partial_with_block and _render_partial_with_layout to _render_partial * TODO: Check to see if any more logic can be shared * TODO: See about streamlining block path so we can get rid of @_proc_for_layout * Remove @exempt_from_layout as it is no longer needed
-
由 Yehuda Katz 提交于
-
由 Yehuda Katz 提交于
* remove no longer used _array_like_objects * _render_content_with_layout renamed to _render_content since layout it optional * remove check for optional layout before _render_content
-
由 Yehuda Katz 提交于
-
由 Yehuda Katz 提交于
-
由 Yehuda Katz 提交于
-
由 Yehuda Katz 提交于
-
由 Yehuda Katz 提交于
-
由 Yehuda Katz 提交于
-
由 Yehuda Katz 提交于
-
由 Yehuda Katz 提交于
-
由 Yehuda Katz 提交于
-
由 Yehuda Katz 提交于
-
由 Yehuda Katz 提交于
Replace _action_view with view_context to reflect that it is public and that it does not need to be an ActionView instance
-
由 Yehuda Katz 提交于
-
- 06 8月, 2009 5 次提交
-
-
由 Jeremy Kemper 提交于
-
由 Akira Matsuda 提交于
[#2959 state:committed] Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
由 Pratik Naik 提交于
-
由 James Tucker 提交于
Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
由 James Hill 提交于
Signed-off-by: NJoshua Peek <josh@joshpeek.com>
-
- 05 8月, 2009 7 次提交
-
-
由 Matthew Rudy Jacobs 提交于
Make sure javascript_include_tag/stylesheet_link_tag does not append ".js" or ".css" onto external urls [#1664 state:resolved] Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
由 Geoff Buesing 提交于
Revert "fallback_string_to_date sets Date._parse comp arg to true, so that strings with two-digit years, e.g. '1/1/09', are interpreted as modern years" [#2019 state:wontfix] This reverts commit 55d1d12c.
-
由 Joshua Peek 提交于
-
由 Joshua Peek 提交于
-
由 Paul Gillard 提交于
Added reset_attribute! method to ActiveRecord::AttributeMethods::Dirty which will reset an attribute to its original value should it have changed. Signed-off-by: NJoshua Peek <josh@joshpeek.com>
-
由 Paul Gillard 提交于
Modified ActiveRecord::AttributeMethods to allow classes to specify attribute method prefixes and/or suffixes. Previously only suffixes were allowed. Signed-off-by: NJoshua Peek <josh@joshpeek.com>
-
由 Joshua Peek 提交于
-
- 04 8月, 2009 2 次提交
-
-
由 Matt Ganderup 提交于
fallback_string_to_date sets Date._parse comp arg to true, so that strings with two-digit years, e.g. '1/1/09', are interpreted as modern years [#2019 state:resolved]
-
由 Geoff Buesing 提交于
quoted_date converts time-like objects to ActiveRecord::Base.default_timezone before serialization. This allows you to use Time.now in find conditions and have it correctly be serialized as the current time in UTC when default_timezone == :utc [#2946 state:resolved]
-
- 03 8月, 2009 1 次提交
-
-
由 Joshua Peek 提交于
-