forked from wycats/merb-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made HTTP method override proc-based and pluggable. [#364]
Changed the check for specific params to procs that execute in the request scope, allowing checks for method overrides to be based on params, headers -- or pretty much anything in the request. Also changed the name of the array that stores these checks from browser_method_workarounds to the more accurate and descriptive http_method_overrides. Signed-off-by: Michael D. Ivey <ivey@gweezlebur.com> (I changed this to yield the controller to the block, instead of using instance_eval, as it seemed cleaner and was significantly faster. See benchmark attachment on ticket #364 --ivey) [#364 state:resolved]
- Loading branch information
Showing
2 changed files
with
19 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters