diff options
author | mguetlein <martin.guetlein@gmail.com> | 2012-07-04 16:35:56 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2012-07-04 16:35:56 +0200 |
commit | bbbd2bc47855f6c42f858031a3160e60c6bb6bdd (patch) | |
tree | 4fbb9c645676b8a93a9853781c0ee074fd5d260f | |
parent | 7fd20e063f05a37e6c3580dc56cb58030d8e7728 (diff) |
fix last commit
-rw-r--r-- | lib/overwrite.rb | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/overwrite.rb b/lib/overwrite.rb index 09c47b5..7154c65 100644 --- a/lib/overwrite.rb +++ b/lib/overwrite.rb @@ -9,11 +9,20 @@ before { # stupid internet explorer does not ask for text/html, add this manually request.env['HTTP_ACCEPT'] += ";text/html" if request.env["HTTP_USER_AGENT"]=~/MSIE/ request.env['HTTP_ACCEPT']=request.params["media"] if request.params["media"] - - params.delete(:splat) - params.delete(:captures) } + +class Ohm::Model + def self.find(p) + if (p!=nil) + p.delete(:captures) + p.delete(:splat) + end + super p + end +end + + # Error handling # Errors are logged as error and formated according to acccept-header # Non OpenTox::Errors (defined in error.rb) are handled as internal error (500), stacktrace is logged |