- 01 5月, 2011 2 次提交
-
-
由 José Valim 提交于
-
由 José Valim 提交于
-
- 16 4月, 2011 2 次提交
-
-
由 José Valim 提交于
Yo dawg, I heard you like streaming. So I put a fiber, inside a block, inside a body, so you can stream.
-
由 José Valim 提交于
-
- 23 2月, 2011 1 次提交
-
-
由 Prem Sichanugrist 提交于
Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 14 10月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 12 10月, 2010 2 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 11 10月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 10 10月, 2010 1 次提交
-
-
由 José Valim 提交于
This commit moves all the template rendering logic that was hanging around AV::Base to renderer objects.
-
- 02 9月, 2010 1 次提交
-
-
由 Łukasz Strzałkowski 提交于
Now it's more transparent, and readable Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 21 7月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 17 5月, 2010 4 次提交
-
-
由 Jeremy Kemper 提交于
This reverts commits af0d1a88 and 64d109e3.
-
由 wycats 提交于
* Default Encoding.default_internal to UTF-8 * Eliminated the use of file-wide magic comments to coerce code evaluated inside the file * Read templates as BINARY, use default_external or template-wide magic comments inside the Template to set the initial encoding * This means that template handlers in Ruby 1.9 will receive Strings encoded in default_internal (UTF-8 by default) * Create a better Exception for encoding issues, and use it when the template source has bytes that are not compatible with the specified encoding * Allow template handlers to opt-into handling BINARY. If they do so, they need to do some of their own manual encoding work * Added a "Configuration Gotchas" section to the intro Rails Guide instructing users to use UTF-8 for everything * Use config.encoding= in Ruby 1.8, and raise if a value that is an invalid $KCODE value is used Also: * Fixed a few tests that were assert() rather than assert_equal() and were caught by Minitest requiring a String for the message * Fixed a test where an assert_select was misformed, also caught by Minitest being more restrictive * Fixed a test where a Rack response was returning a String rather than an Enumerable
-
由 wycats 提交于
- 20 3月, 2010 1 次提交
-
-
由 wycats 提交于
-
- 11 3月, 2010 1 次提交
-
-
由 José Valim 提交于
-
- 08 3月, 2010 2 次提交
-
-
由 José Valim 提交于
-
由 José Valim 提交于
-
- 07 3月, 2010 1 次提交
-
-
由 wycats 提交于
add lazy_load_hooks.rb, which allows us to declare code that should be run at some later time. For instance, this allows us to defer requiring ActiveRecord::Base at boot time purely to apply configuration. Instead, we register a hook that should apply configuration once ActiveRecord::Base is loaded. With these changes, brings down total boot time of a new app to 300ms in production and 400ms in dev. TODO: rename base_hook
-
- 01 2月, 2010 4 次提交
-
-
由 Santiago Pastorino 提交于
Signed-off-by: NYehuda Katz <wycats@Yehuda-Katz.local>
-
由 Santiago Pastorino 提交于
Signed-off-by: NYehuda Katz <wycats@Yehuda-Katz.local>
-
由 Yehuda Katz 提交于
For performance reasons, you can no longer call html_safe! on Strings. Instead, all Strings are always not html_safe?. Instead, you can get a SafeBuffer from a String by calling #html_safe, which will SafeBuffer.new(self). * Additionally, instead of doing concat("</form>".html_safe), you can do safe_concat("</form>"), which will skip both the flag set, and the flag check. * For the first pass, I converted virtually all #html_safe!s to #html_safe, and the tests pass. A further optimization would be to try to use #safe_concat as much as possible, reducing the performance impact if we know up front that a String is safe.
-
由 Mikel Lindsaar 提交于
-
- 05 1月, 2010 1 次提交
-
-
由 Joshua Peek 提交于
-
- 24 12月, 2009 1 次提交
-
-
由 Carlhuda 提交于
-
- 23 12月, 2009 1 次提交
-
-
由 Joshua Peek 提交于
-
- 21 12月, 2009 1 次提交
-
-
由 Yehuda Katz 提交于
-
- 17 12月, 2009 1 次提交
-
-
由 Joshua Peek 提交于
adding any to the load path more than once.
-
- 11 12月, 2009 1 次提交
-
-
由 Nathan Weizenbaum 提交于
Add autoloads for ActionView::Template* classes, and an ActionView::TemplateError alias for ActionView::Template::Error. Signed-off-by: NYehuda Katz <wycats@Yehuda-Katz.local>
-
- 03 12月, 2009 1 次提交
-
-
由 Carlhuda 提交于
* A new module (ActiveSupport::Autoload) is provide that extends autoloading with new behavior. * All autoloads in modules that have extended ActiveSupport::Autoload will be eagerly required in threadsafe environments * Autoloads can optionally leave off the path if the path is the same as full_constant_name.underscore * It is possible to specify that a group of autoloads live under an additional path. For instance, all of ActionDispatch's middlewares are ActionDispatch::MiddlewareName, but they live under "action_dispatch/middlewares/middleware_name" * It is possible to specify that a group of autoloads are all found at the same path. For instance, a number of exceptions might all be declared there. * One consequence of this is that testing-related constants are not autoloaded. To get the testing helpers for a given component, require "component_name/test_case". For instance, "action_controller/test_case". * test_help.rb, which is automatically required by a Rails application's test helper, requires the test_case.rb for all active components, so this change will not be disruptive in existing or new applications.
-
- 29 11月, 2009 1 次提交
-
-
由 Yehuda Katz 提交于
-
- 08 10月, 2009 1 次提交
-
-
由 Michael Koziarski 提交于
This consists of: * String#html_safe! a method to mark a string as 'safe' * ActionView::SafeBuffer a string subclass which escapes anything unsafe which is concatenated to it * Calls to String#html_safe! throughout the rails helpers * a 'raw' helper which lets you concatenate trusted HTML from non-safety-aware sources (e.g. presantized strings in the DB) * New ERB implementation based on erubis which uses a SafeBuffer instead of a String Hat tip to Django for the inspiration.
-
- 16 9月, 2009 1 次提交
-
-
由 José Valim 提交于
Signed-off-by: NYehuda Katz <wycats@gmail.com>
-
- 15 9月, 2009 1 次提交
-
-
由 Jeremy Kemper 提交于
-
- 04 9月, 2009 1 次提交
-
-
- 19 7月, 2009 1 次提交
-
-
由 Yehuda Katz 提交于
-
- 16 7月, 2009 1 次提交
-
-
由 Yehuda Katz 提交于
-
- 18 6月, 2009 1 次提交
-
-