aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view.rb
Commit message (Collapse)AuthorAgeFilesLines
* No need to delegate. Simply include the whole RecordIdentifier module.José Valim2010-07-211-0/+1
|
* Revert "Moved encoding work in progress to a feature branch."wycats2010-05-171-1/+5
| | | | This reverts commit ade756fe42423033bae8e5aea8f58782f7a6c517.
* Moved encoding work in progress to a feature branch.Jeremy Kemper2010-05-161-5/+1
| | | | This reverts commits af0d1a88157942c6e6398dbf73891cff1e152405 and 64d109e3539ad600f58536d3ecabd2f87b67fd1c.
* Significantly improved internal encoding heuristics and support.wycats2010-05-161-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Initial work to improve the state of encodings for templateswycats2010-05-161-0/+2
|
* Eliminate an error from an implicit dependency on AV::Basewycats2010-03-191-1/+3
|
* Optimize and clean up how details key get expired.José Valim2010-03-101-0/+1
|
* Merge master.José Valim2010-03-081-7/+7
|\
| * Make many parts of Rails lazy. In order to facilitate this,wycats2010-03-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | Rename Template::Lookup to LookupContext.José Valim2010-03-081-0/+1
| |
* | More refactoring on the views side of rendering.José Valim2010-03-081-0/+1
|/
* Merge branch 'master' of git://github.com/rails/railsMikel Lindsaar2010-02-021-2/+1
|\
| * Deleted all references to ActionView::SafeBuffer in favor of ↵Santiago Pastorino2010-01-311-2/+0
| | | | | | | | | | | | ActiveSupport::SafeBuffer Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
| * action_view/safe_buffer is no longer validSantiago Pastorino2010-01-311-1/+0
| | | | | | | | Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
| * For performance reasons, you can no longer call html_safe! on Strings. ↵Yehuda Katz2010-01-311-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Updating copyright dates on all licensesMikel Lindsaar2010-02-011-1/+1
|/
* Autoload AC and AV test case classesJoshua Peek2010-01-041-0/+2
|
* Remove the ActionView::Base autoload because it creates crazy circular ↵Carlhuda2009-12-231-1/+1
| | | | autoload insanity
* Flip deferrable autoload conventionJoshua Peek2009-12-221-20/+21
|
* Add active_support/ruby/shim to the default requirements for AP componentsYehuda Katz2009-12-201-1/+1
|
* Fully expand relative rails framework paths and make sure we aren'tJoshua Peek2009-12-161-7/+6
| | | | adding any to the load path more than once.
* Add autoloads for ActionView::Template* classes, and an ↵Nathan Weizenbaum2009-12-101-0/+4
| | | | | | ActionView::TemplateError alias for ActionView::Template::Error. Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
* Reorganize autoloads:Carlhuda2009-12-021-14/+12
| | | | | | | | | | | | | | | | | | | | | * 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.
* Remove reference to class that doesn't exist (ht: brynary)Yehuda Katz2009-11-281-1/+1
|
* Switch to on-by-default XSS escaping for rails.Michael Koziarski2009-10-081-3/+3
| | | | | | | | | | | | 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.
* Remove unused code in ActionView.José Valim2009-09-151-3/+0
| | | | Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Require active_support after autoload setupJeremy Kemper2009-09-141-5/+5
|
* Refactor ActionView::ResolverYehuda Katz + Carl Lerche2009-09-031-0/+1
|
* Separate ActionView::Context so something else can easily be made into an AV ↵Yehuda Katz2009-07-191-1/+2
| | | | context
* Add some missing dependenciesYehuda Katz2009-07-151-0/+1
|
* Cleaning up more tests and code that needed to work in both old and new baseYehuda Katz + Carl Lerche2009-06-171-0/+1
|
* Rename path.rb to resolver.rbYehuda Katz + Carl Lerche2009-06-171-1/+1
|
* Rename ActionView::Template::Path ActionView::ResolverYehuda Katz + Carl Lerche2009-06-171-14/+14
|
* Cleaning up more render testsYehuda Katz + Carl Lerche2009-05-141-0/+1
|
* Cherry-pick core extensionsJeremy Kemper2009-05-131-10/+3
|
* No more free lunchJeremy Kemper2009-04-221-0/+1
|
* Makes rails-dev-boost work againCarl Lerche & Yehuda Katz2009-04-141-0/+1
|
* Working on being able to render :text with layoutsCarl Lerche2009-03-231-0/+1
|
* Begin unifying the interface between ActionController and ActionViewYehuda Katz2009-01-221-8/+11
|
* Bump up the year in MIT license filesPratik Naik2009-01-181-1/+1
|
* Add config.preload_frameworks to load all frameworks at startup. Default to ↵Jeremy Kemper2008-11-241-2/+0
| | | | false so Rails autoloads itself as it's used.
* Add LAZY env flag for testing autoload/lazy load featureJoshua Peek2008-11-241-1/+1
|
* use autoload instead of explicit requires for ActionViewJoshua Peek2008-11-231-15/+21
|
* use :en as a default locale (in favor of :en-US)Sven Fuchs2008-11-181-1/+1
| | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* I18n: Introduce I18n.load_path in favor of I18n.load_translations and change ↵Sven Fuchs2008-09-201-1/+1
| | | | | | Simple backend to load translations lazily. [#1048 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* I18n: removed call to #populate from main library filesMarko Seppae2008-08-271-3/+1
|
* Harmonize framework require strategy. Don't add self to load path since ↵Jeremy Kemper2008-08-251-1/+10
| | | | Rails initializer and RubyGems handle it.
* Include all helpers into ActionView::HelperJoshua Peek2008-08-251-4/+3
|
* Changed locale file to yml for actionpack, but still brokenIain Hecker2008-08-201-1/+1
|
* switch to using I18n.load_translations instead of requiring plain ruby filesSven Fuchs2008-08-131-1/+1
|