José Valim
e3a4eb4b40
Close the response body on cascade pass, closes #3975 .
2011-12-14 17:03:35 +01:00
choonkeat
5f67cfeda1
Fix url_for options[:subdomain] to allow objects as values
...
* e.g. blog_url(subdomain: current_user) instead of blog_url(subdomain: current_user.to_param)
2011-12-14 22:43:42 +08:00
José Valim
f3531a8fc9
Clean up details keys before some tests to expire the cache.
2011-12-14 09:23:34 +01:00
Aaron Patterson
c7552d988e
dup the details hash if a key has already been set for this object
2011-12-13 15:26:29 -08:00
José Valim
5dc4868962
Merge pull request #3970 from lest/backtrace-when-silenced
...
log exception backtrace when all backtrace lines silenced
2011-12-13 11:43:13 -08:00
Sergey Nartimov
081431fdf1
log exception backtrace when all backtrace lines silenced
2011-12-13 22:32:39 +03:00
Aaron Patterson
ab802e72dc
locale and default_locale may be the same, so uniq the array
2011-12-13 11:28:30 -08:00
Aaron Patterson
9d87a67590
stop freezing the details hash
2011-12-13 11:25:03 -08:00
Aaron Patterson
8b85e4a4a1
stop freezing hash value
2011-12-13 11:13:14 -08:00
José Valim
0f4da5b393
Fix failing AP tests.
2011-12-13 15:45:16 +01:00
Aaron Patterson
810837dda8
use Array#join so that file encoding doesn't impact returned string.
...
Fixes #3957
2011-12-12 19:45:16 -08:00
Aaron Patterson
676092f761
logger adds a newline for us
2011-12-12 16:02:59 -08:00
José Valim
400929fb44
Merge pull request #3943 from sferik/add_explicit_requires
...
Include TagHelper but don't explicitly require it
2011-12-12 14:11:16 -08:00
Erik Michaels-Ober
196407c54f
Include TagHelper but don't explicitly require it
...
Allow autoloading to work as intended and avoid multiple requires.
2011-12-12 14:05:25 -08:00
José Valim
fa1d9a884c
Speed up development by only reloading classes if dependencies files changed.
...
This can be turned off by setting `config.reload_classes_only_on_change` to false.
Extensions like Active Record should add their respective files like db/schema.rb and db/structure.sql to `config.watchable_files` if they want their changes to affect classes reloading.
Thanks to https://github.com/paneq/active_reload and Pastorino for the inspiration. <3
2011-12-12 22:54:04 +01:00
José Valim
ede647a505
Allow reloader to be configured.
2011-12-12 19:41:17 +01:00
Piotrek Okoński
5266eb9f61
Default relative_url_root to ENV["RAILS_RELATIVE_URL_ROOT"]. Fixes #3365
2011-12-12 17:11:07 +01:00
Lennart Fridén
dc43e402a1
Added :use_two_digit_numbers option [Lennart Fridén & Kim Persson]
...
Added use_two_digit_numbers select_tag option for displaying months and days with leading zeros without affecting the values (useful for e.g. ISO-style dates, 2011-08-01).
Signed-off-by: José Valim <jose.valim@gmail.com >
Conflicts:
actionpack/CHANGELOG.md
2011-12-11 22:54:28 +01:00
José Valim
78de996562
Merge pull request #3933 from wfarr/master
...
Add button_tag support to ActionView::Helpers::FormBuilder
2011-12-11 06:06:41 -08:00
Will Farrington
3f65e7f7be
Add button_tag support to ActionView::Helpers::FormBuilder.
...
This support is near-identical to the existing submit_tag support.
Example:
<%= form_for @post do |f| %>
<%= f.button %>
<% end %>
2011-12-11 08:56:26 -05:00
Guillermo Iguaran
7a7e87d5aa
Use ProcessedAsset#pathname in Sprockets helpers when debugging is on. Closes #3333 #3348 #3361 .
...
Is wrong use ProcessedAsset#to_s since it returns the content of the file.
2011-12-10 18:08:42 -05:00
Piotr Sarnacki
efed2d56e2
Update partials documentation, partial_path is no longer generated using RecordIdentifier
2011-12-10 01:30:21 +01:00
José Valim
ab30570b69
Fix extend -> include.
2011-12-09 21:42:18 +01:00
Aaron Patterson
c212a34e1d
only load converter if the encodings are different
2011-12-09 09:33:36 -08:00
David Heinemeier Hansson
22a6079a20
Make ActiveSupport::Benchmarkable a default module for ActionController::Base, so the #benchmark method is once again available in the controller context like it used to be *DHH*
2011-12-09 18:17:57 +01:00
José Valim
5ad5215211
Deprecate implicit layout lookup in favor of inheriting the _layout config.
2011-12-09 07:20:55 +01:00
José Valim
2995134cba
Simplify path traversal logic
2011-12-09 06:25:10 +01:00
Aaron Patterson
2c471b3ac8
load the encoding converter to work around [ruby-core:41556] when switching encodings
2011-12-08 15:14:07 -08:00
José Valim
d4d99bbc87
Fix another regression related to the layout optimization.
2011-12-08 22:56:50 +01:00
José Valim
c41f08cefe
Move symbolize keys to the inner options as we can assume url_options will be properly symbolized.
2011-12-08 21:20:47 +01:00
José Valim
ebd71fd0e3
Fix a regression and also fix broken test.
2011-12-08 21:00:34 +01:00
José Valim
7280787a53
Improve cache on route_key lookup.
2011-12-08 19:53:16 +01:00
José Valim
859a4556dd
Revert accidental change from cattr_accessor to class_attribute.
2011-12-08 19:01:15 +01:00
José Valim
1bad06aebe
Merge pull request #3906 from kennyj/fix_warnings_for_params_wrapper_test
...
Fix warning for params_wrapper_test.rb
2011-12-08 07:56:07 -08:00
José Valim
67cc07e0c4
Just use the proc if there is a chance of layout lookup.
2011-12-08 16:51:47 +01:00
José Valim
239262fee0
Optimize layout lookup to avoid double calls.
2011-12-08 16:39:06 +01:00
José Valim
efc28a7f70
Some small optimizations and improvements to benchmark code.
2011-12-08 16:39:06 +01:00
José Valim
06ac7d3ee0
Add performance scripts from wycats/rails-simple-benches to actionpack.
2011-12-08 16:39:06 +01:00
kennyj
3ade2f8e89
Fix warning for params_wrapper_test.
2011-12-08 23:09:09 +09:00
José Valim
bf34a360dd
Merge pull request #3900 from jfturcot/accessible_wrap_params
...
ParamsWrapper only wrap the accessible attributes when they were set
2011-12-08 01:13:14 -08:00
Jean-Francois Turcot
677f968b77
Add information to the changelog about the changes to ActionController::ParamsWrapper
2011-12-08 04:03:55 -05:00
José Valim
e2e9eabc58
Remove dead broken code from AD::Request
2011-12-08 09:30:27 +01:00
José Valim
f84bf83b9b
Merge pull request #3888 from kennyj/should_use_default_charset
...
Assign config.encoding to AD::Response.default_charset at the initialization time.
2011-12-08 00:18:09 -08:00
Jean-Francois Turcot
d5526218e4
ParamsWrapper only wrap the accessible attributes when they were set
2011-12-07 22:50:01 -05:00
José Valim
30f0d7bac8
Remove #:nodoc: from partial renderer.
2011-12-07 19:16:14 +01:00
kennyj
0a958d8468
Use freezed string constant. Some string literals is used repeatedly.
2011-12-08 02:19:15 +09:00
José Valim
0df2ef3ef4
Merge pull request #3884 from sikachu/master-fix_layout
...
Allow layout fallback when using `layout` method
2011-12-07 08:00:45 -08:00
kennyj
199353c658
Assign config.encoding to AD::Response.default_charset at the initialization time.
2011-12-07 21:11:08 +09:00
José Valim
eb22901920
Merge pull request #3878 from kennyj/should_use_default_charset
...
Use default charset when we read content type without charset.
2011-12-07 04:07:51 -08:00
kennyj
a1986e7d55
Use default charset when we read content type without charset.
2011-12-07 12:35:44 +09:00