José Valim
d38dac8ea9
Override respond_to? since we are also overriding method_missing.
2012-01-03 20:27:38 +01:00
Sergey Nartimov
5f09414f85
deprecate ActiveSupport::Base64
...
extend and define ::Base64 if needed
2012-01-03 00:57:03 +03:00
Aaron Patterson
50af25ba87
last named route wins. fixes #4164
...
This differs from route recognition where first recognized route wins.
This will not be supported in Rails 4.0 so that route recognition and
generation rules are consistent.
2011-12-28 16:33:40 -08:00
Aaron Patterson
9d0789c415
adding tests for #4029
2011-12-19 13:34:54 -08:00
Justin Campbell
27f3619cd5
Add test for register_alias
2011-12-17 07:52:47 -05:00
Justin Campbell
a87690b02c
Add test for type aliases
2011-12-17 07:40:54 -05:00
Justin Campbell
4d5266e270
Allow symbols to be passed for extension aliases
2011-12-17 07:40:25 -05:00
José Valim
192e55c38e
Do not raise an exception if an invalid route was generated automatically.
2011-12-16 10:45:59 +01:00
José Valim
5359262695
ShowExceptions should understand X-Cascade responses from exceptions app.
2011-12-16 10:45:59 +01:00
José Valim
7dd1c751f9
Improve the specs on exceptions app.
2011-12-16 10:45:59 +01:00
José Valim
deef8dd682
Extract the rendering of public exceptions pages into a Rack app.
2011-12-16 10:45:59 +01:00
José Valim
d142572567
Get rid of the close checks since we cannot reliably close the session anyway.
2011-12-16 10:45:59 +01:00
Arun Agrawal
aa39149b2f
Warning removed "warning: (...) interpreted as grouped expression"
2011-12-16 10:30:20 +05:30
José Valim
e3a4eb4b40
Close the response body on cascade pass, closes #3975 .
2011-12-14 17:03:35 +01:00
Sergey Nartimov
081431fdf1
log exception backtrace when all backtrace lines silenced
2011-12-13 22:32:39 +03: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
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
kennyj
a1986e7d55
Use default charset when we read content type without charset.
2011-12-07 12:35:44 +09:00
José Valim
2ab2077235
Fix failing cascade exception.
2011-12-03 11:38:25 +01:00
José Valim
6a4606d3a6
Remove unnecessary test setup.
2011-12-01 21:17:11 +01:00
José Valim
f9edc079e0
Split and improve show and debug exceptions middlewares.
2011-12-01 21:15:42 +01:00
José Valim
750bb5c865
Split ShowExceptions responsibilities in two middlewares.
2011-12-01 20:46:18 +01:00
lest
fe7d4f09ef
put backtrace_cleaner to env
2011-11-28 19:25:37 +03:00
lest
cd9d28d6fd
middlewares should use logger from env
2011-11-25 13:09:46 +03:00
lest
98a1717e7c
configuration option to always write cookie
2011-11-23 23:50:04 +03:00
kennyj
ea70e027b6
Remove unreachable code, and add additional testcases.
2011-11-24 00:25:34 +09:00
lest
c6d6b28bb4
refactor show exceptions tests
2011-11-22 11:38:55 +03:00
lest
a9e8cf78fd
add ActionController::Metal#show_detailed_exceptions?
2011-11-22 11:38:24 +03:00
Aaron Patterson
99d94f126d
Refactoring the redirect method for the router api.
2011-11-18 10:51:12 -08:00
Aaron Patterson
0809c675ef
remove the :path feature to redirects, since it cannot work
2011-11-18 10:51:11 -08:00
Aaron Patterson
4589b2419b
require that all blocks have arity of 2
2011-11-18 10:51:11 -08:00
Andre Arko
b8c85de620
add test for bug fixed in 4f2bf64
2011-11-14 12:29:51 -10:00
Andre Arko
8f0085a483
change tests to expect X-F-F over REMOTE_ADDR
2011-11-13 10:19:54 -10:00
Arun Agrawal
50dfd58fdb
Warnings removed from RequestIdTest
2011-10-22 16:30:48 +05:30
Brian Durand
2b04c2f66e
Add ActionDispatch::Session::CacheStore as a generic way of storing sessions in a cache.
2011-10-21 13:13:29 -05:00
José Valim
f1fecd9b4e
Make tests run on 1.8.x, add integration setup.
2011-10-19 22:09:36 +02:00
David Heinemeier Hansson
ada78066fd
Blah, SecureRandom#uuid is not supported in 1.8.7 -- cant wait for Rails 4.0 to drop compatibility with 1.8.x
2011-10-19 14:45:42 -05:00
David Heinemeier Hansson
afde6fdd5e
Added X-Request-Id tracking and TaggedLogging to easily log that and other production concerns
2011-10-19 12:59:33 -05:00
Jeremy Kemper
401d00d296
Symbol captures may generate multiple path segments, so don't escape / -> %2F. Test splat escaping.
2011-10-13 21:42:15 -07:00
Jeremy Kemper
45ced7e1be
Failing tests for path parameter escaping
2011-10-13 19:02:58 -07:00
Diego Carrion
8f863742e3
allow shorthand routes with nested optional parameters
2011-10-10 19:53:42 -03:00
Kamil Sobieraj
de942e5534
:subdomain can now be specified with a value of false in url_for, allowing for subdomain(s) removal from the host during link generation. Closes #2025
2011-10-04 09:16:34 +01:00
Vijay Dev
541018a07b
fix deprecation warning in cookie_store_test
...
The options argument to MessageVerifier#initialize should be a hash.
2011-09-25 23:21:37 +05:30
Evgeniy Dolzhenko
86cf3fb5fa
Implement Mime::Type#respond_to? (consistently with #method_missing)
2011-09-25 13:03:01 +01:00
Pawel Pierzchala
019eea4a38
Fix named routes modifying arguments
2011-09-22 09:57:00 +02:00
Aaron Patterson
a08bee7841
all routes can be stored in the Journey Routes object
2011-09-12 16:50:48 -07:00
Aaron Patterson
fdd619e9a7
CookieJar is enumerable. fixes #2795
2011-09-01 13:37:14 -07:00
Andrew Kaspick
61579b7661
when calling url_for with a hash, additional (likely unwanted) values (such as :host) would be returned in the hash... calling #dup on the hash prevents this
2011-08-11 13:28:31 -05:00