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
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
José Valim
0b677b18ff
Add an ExceptionWrapper that wraps an exception and provide convenience helpers.
2011-12-01 20:02:00 +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
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
Xavier Noria
b6916e0b92
removes a Serialization constant left in the previous revert
2011-11-25 15:06:30 -08: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
696d01f7f4
Add docs to serializers. Update CHANGELOGs.
2011-11-25 09:49:54 +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
José Valim
fd86a1b6b0
Rely on a public contract between railties instead of accessing railtie methods directly.
2011-11-23 19:06:45 +00:00
lest
5bcd119b8d
move show_detailed_exceptions? to Rescue module
2011-11-22 13:34:13 +03:00
lest
a9e8cf78fd
add ActionController::Metal#show_detailed_exceptions?
2011-11-22 11:38:24 +03:00
Xavier Noria
c3035e1800
Merge pull request #3613 from mitio/fix-actionpack-responder-docs
...
Fix wording and minor typos in the Responder RDoc
2011-11-11 10:03:29 -08:00
Dimitar Dimitrov
a766d834a7
Fix wording and minor typos in the Responder RDoc
2011-11-11 19:52:38 +02: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
Ivan Evtukhovich
cf0a96bc6a
DrbStore removed from cache backends
2011-11-07 18:57:55 +04:00
Vijay Dev
6ac56ac93b
fix incorrect code example
2011-11-07 17:58:03 +05:30
Akira Matsuda
cc3e738d89
Fix AC::Metal#response_body= to store same value on Ruby 1.8 and 1.9
...
This was because String#respond_to?(:each) differs in 1.8 and 1.9
2011-11-07 16:24:54 +09:00
Aaron Patterson
62a86748ae
this should never return nil, so no use for "try"
2011-10-31 15:17:16 -04: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
Vijay Dev
c809de8291
Merge branch 'master' of github.com:lifo/docrails
2011-10-30 14:47:23 +05:30
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
Nick Howard
a7641054d8
add namespacing when referring to ActionController::RedirectBackError
2011-10-25 10:39:20 -06:00
Alexey Vakhov
8f473dc9ae
HTMl -> HTML: html scanner comment fix
2011-10-15 23:54:26 +04:00
Jose and Yehuda
a4c04a43cc
Refactor to make renderers a Set
2011-10-15 18:40:37 +02:00
Jose and Yehuda
8ff7693a8d
Initial commit of serializer support
2011-10-15 18:40:37 +02:00
Alexey Vakhov
f247c5f811
Update AC::RecordIdentifier example
2011-10-15 11:34:33 +04:00
Vijay Dev
e759c8882a
Merge branch 'master' of github.com:lifo/docrails
2011-10-14 22:21:40 +05:30
Akira Matsuda
4a025f0080
status is a number in Rails 3
2011-10-12 15:44:19 +09:00
Alexey Vakhov
50d262f52a
Support symbol and string actions in AC#respond_to options
2011-10-11 12:48:03 +04:00
Alexey Vakhov
419d4c09df
Add ActionController#head example
2011-10-11 12:31:27 +04:00
Denis Odorcic
a0a68ecbb2
JSON responder should return errors with :error root
2011-10-10 01:42:12 -04:00
Vijay Dev
a2edc884f3
Merge branch 'master' of github.com:lifo/docrails
2011-10-09 20:10:53 +05:30
Ben Scheirman
d68f27e9b1
accept optional :host parameter to force_ssl
2011-10-08 18:38:02 -05:00
Alexey Vakhov
a4515b60e3
Remove unnecessary dup in expire_page
2011-10-08 11:01:31 +04:00
Alexey Vakhov
22b6e829dc
Fix params hash example in AC::Base comment
2011-10-08 10:12:58 +04:00
José Valim
9c6d4801d1
Merge pull request #3193 from avakhov/patch-ac-test-case-safe-constantize
...
use safe_constantize instead constantize in AC::TestCase
2011-10-03 02:10:40 -07:00
Alexey Vakhov
8e946daf69
normalize arg for AC::TestCase tests class method
2011-10-03 12:12:07 +04:00
Alexey Vakhov
0eb80fabdd
use safe_constantize instead constantize in AC::TestCase
2011-10-03 10:04:14 +04:00
Alexey Vakhov
1bd88fdafd
add missing require to html sanitizer
2011-09-27 23:39:52 +04:00
José Valim
e8987c30d0
Use safe_constantize where possible.
2011-09-23 16:46:33 +02:00
Mike Dillon
7fb99e5743
Change log level for CSRF token verification warning
2011-09-10 08:31:04 -07:00
Nicolás Hock Isaza
9821d982ff
Fixing record_key_for_dom_id documentation.
...
The default implementation joins everything with '_' and not with '-'
2011-09-06 23:26:56 -05:00
Aaron Patterson
f6ced69a11
Eliminate newlines in basic auth. fixes #2882
2011-09-06 17:25:20 -07:00
Milan Dobrota
9b08afd2f4
if ... nil? is more expensive than unless
2011-09-04 10:44:08 -05:00
Alexey Vakhov
19ec3c1ae6
fix helpers behavior description
2011-09-03 23:13:40 +04:00
Xavier Noria
bb4dedbc2c
deletes spurious arrow
2011-08-27 15:34:33 -07:00
Vijay Dev
8526f727cf
doc fixes
2011-08-28 02:27:39 +05:30