José Valim
07f90f6bec
Merge branch 'exceptions' with the following features:
...
* A Railtie API for registering new exceptions and their respective status code (check Active Record railtie for an example)
* Extraction of ShowExceptions middleware logging and debugging features into a middleware called DebugExceptions
Conflicts:
actionpack/CHANGELOG.md
2011-12-01 21:18:47 +01:00
José Valim
750bb5c865
Split ShowExceptions responsibilities in two middlewares.
2011-12-01 20:46:18 +01:00
David Heinemeier Hansson
83d29a283c
Revert "Added ActiveRecord::Base#last_modified to work with the new fresh_when/stale? conditional get methods from Action Pack"
...
Needless indirection with no added value.
This reverts commit 535853e83b .
2011-12-01 20:45:47 +01:00
David Heinemeier Hansson
535853e83b
Added ActiveRecord::Base#last_modified to work with the new fresh_when/stale? conditional get methods from Action Pack
2011-12-01 19:47:14 +01:00
David Heinemeier Hansson
218c272938
Allow fresh_when/stale? to take a record instead of an options hash [DHH]
2011-12-01 19:16:10 +01:00
lest
565d92f578
fix method redefined warnings in tests
2011-11-30 18:57:12 +03:00
José Valim
38ab982cff
Log 'Filter chain halted as CALLBACKNAME rendered or redirected' every time a before callback halts.
2011-11-30 09:53:09 +01:00
José Valim
0a4035b12a
Revert the serializers API as other alternatives are now also under discussion
2011-11-25 19:29:39 +00:00
José Valim
fcacc6986a
Merge branch 'serializers'
...
This implements the ActiveModel::Serializer object. Includes code, tests, generators and guides.
From José and Yehuda with love.
Conflicts:
railties/CHANGELOG.md
2011-11-25 09:59:35 +00:00
José Valim
7fcc8c0a1f
Rely solely on active_model_serializer and remove the fancy constant lookup.
2011-11-23 23:45:27 +00:00
José Valim
e62de52aa3
Merge branch 'master' into serializers
2011-11-23 20:43:06 +00:00
kennyj
453f5534b4
Warnings removed. (ambiguous first argument)
2011-11-24 00:10:34 +09:00
lest
5bcd119b8d
move show_detailed_exceptions? to Rescue module
2011-11-22 13:34:13 +03:00
lest
c6d6b28bb4
refactor show exceptions tests
2011-11-22 11:38:55 +03:00
José Valim
d2cfa982fd
Merge pull request #3581 from amatsuda/metal_response_body_19
...
AC::Metal#response_body= stores different value in Ruby 1.8 and 1.9
2011-11-10 00:49:14 -08:00
Akira Matsuda
be7ab83b64
A test case to ensure that AC::Metal#response_body= always wraps the given value in an Array in both Ruby 1.8 and 1.9 (refs #3581 )
2011-11-10 10:54:56 +09:00
Bradford Folkens
bd559b0068
Fix trouble using :subdomain in development environment when using numeric addresses.
...
See-also pull request #3561 from 3-1-stable
Otherwise the following occurs:
TypeError: can't convert nil into String
/Users/bfolkens/dev/bfolkens-rails-core/actionpack/lib/action_dispatch/http/url.rb:75:in host_or_subdomain_and_domain'
/Users/bfolkens/dev/bfolkens-rails-core/actionpack/lib/action_dispatch/http/url.rb:37:in url_for'
/Users/bfolkens/dev/bfolkens-rails-core/actionpack/lib/action_dispatch/routing/url_for.rb:147:in test_subdomain_may_be_accepted_with_numeric_host'
/Users/bfolkens/dev/bfolkens-rails-core/activesupport/lib/active_support/testing/setup_and_teardown.rb:67:in run'
/Users/bfolkens/dev/bfolkens-rails-core/activesupport/lib/active_support/callbacks.rb:426:in send'
/Users/bfolkens/dev/bfolkens-rails-core/activesupport/lib/active_support/callbacks.rb:81:in run'
2011-11-08 07:52:35 -06:00
Christopher Meiklejohn
6cbe4223a7
Ensure that the format isn't applied twice to the cache key, else it becomes impossible to target with expire_action.
2011-10-31 15:10:07 -04:00
José Valim
80768b739e
Responders now return 204 No Content for API requests without a response body (as in the new scaffold)
2011-10-26 09:31:56 +02:00
Arun Agrawal
244dcfea47
ActionPack test fix for RBX
2011-10-24 14:11:20 +05:30
Jose and Yehuda
8ff7693a8d
Initial commit of serializer support
2011-10-15 18:40:37 +02:00
Jeremy Kemper
bceec4c3c3
/ is allowed in URI fragments
2011-10-13 21:41:30 -07:00
Santiago Pastorino
8f11d53506
Merge pull request #2219 from kommen/fix_fragment_caching_squashed
...
Fix fragment caching (squashed commits)
2011-10-13 13:36:20 -07:00
Alexey Vakhov
50d262f52a
Support symbol and string actions in AC#respond_to options
2011-10-11 12:48:03 +04:00
Denis Odorcic
a0a68ecbb2
JSON responder should return errors with :error root
2011-10-10 01:42:12 -04:00
Ben Scheirman
d68f27e9b1
accept optional :host parameter to force_ssl
2011-10-08 18:38:02 -05: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
Alexey Vakhov
8e946daf69
normalize arg for AC::TestCase tests class method
2011-10-03 12:12:07 +04:00
José Valim
6e8fe1bf02
TestCase should respect the view_assigns API instead of pulling variables on its own.
2011-10-02 11:29:13 +02:00
Santiago Pastorino
3de95fd930
Revert "Make process reuse the env var passed as argument"
...
This reverts commit 0e4748cd41 .
2011-09-24 17:19:42 -03:00
José Valim
43d27e9105
Deprecate passing the template handler in the template name.
...
For example, calling hello.erb is now deprecated. Since Rails 3.0
passing the handler had no effect whatsover. This commit simply
deprecates such cases so we can clean up the code in later releases.
2011-09-22 15:37:38 +02:00
José Valim
119e9e2daf
Get rid of update_details in favor of passing details to find_template.
2011-09-22 15:03:05 +02:00
Aaron Patterson
a08bee7841
all routes can be stored in the Journey Routes object
2011-09-12 16:50:48 -07:00
Mike Dillon
dbef311819
Use ensure instead of rescue
2011-09-10 11:01:22 -07:00
Mike Dillon
538fb18dea
Add test for warning and CHANGELOG entry
2011-09-10 09:51:55 -07:00
Aaron Patterson
ac1a363c6e
Pull up a method we only use once.
2011-09-08 16:04:57 -07:00
Aaron Patterson
41a085ebc9
Conditions must never be equal
2011-09-08 16:04:57 -07:00
Jon Leighton
16f1ce41d5
Merge pull request #2499 from akaspick/assert_select_email_fix
...
Fix assert_select_email to work on non-multipart emails as well as converting the Mail::Body to a string to prevent errors.
2011-09-07 05:51:31 -07:00
Aaron Patterson
f6ced69a11
Eliminate newlines in basic auth. fixes #2882
2011-09-06 17:25:20 -07:00
Santiago Pastorino
a1fa756e17
* is not allowed in windows file names. Closes #2574 #2847
2011-09-04 17:44:48 -03:00
Andrew White
ebea387e4b
Add failing test case for #2654
2011-08-23 15:33:59 +01:00
Andrew White
14cf4b2e35
Don't modify params in place - fixes #2624
2011-08-23 11:07:37 +01:00
Aaron Patterson
5f94b93279
Properly escape glob characters.
2011-08-16 15:28:27 -07:00
Jon Leighton
8e23615245
Use lazy load hooks to set parameter wrapping configuration. This means that it doesn't force Action Controller / Active Record to load, but it doesn't fail if they have already loaded. Thanks @josevalim for the hint.
2011-08-16 19:14:20 +01:00
Jon Leighton
6c5f67cac1
Don't refer to ActionController::Base in the wrap_parameters initializer - use config object instead. Cuts about 15% off the load time. ( #734 )
2011-08-16 00:59:59 +01:00
Franck Verrot
75dd33a0ae
Methods like status and location are interfering with redirect_to [ Closes #2511 ]
2011-08-14 19:00:30 +02:00
Aaron Patterson
943a37348a
moving test_generate to an integration test with one assert per test
2011-08-12 15:55:00 -07:00
Andrew Kaspick
60d358b233
fix assert_select_email to work on non-multipart emails as well as converting the Mail::Body to a string to prevent errors.
2011-08-11 17:49:31 -05:00
thoefer
860202e8b2
Fix the issue where default_url_options is being cached on test cases. Closes #1872 . Closes #2031 .
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-08-01 11:49:24 +02:00
Santiago Pastorino
d701b3fa47
Merge pull request #2379 from arunagw/extra_require_removal
...
Removing extra requires from the test. Already loaded in abstract_unit.
2011-07-31 11:50:52 -07:00