summaryrefslogtreecommitdiffstats
path: root/config/initializers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-03 11:45:55 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-12-03 11:45:55 +0000
commitea59d93dc82d9675586c4b2e176fb4b7640e3158 (patch)
tree3980135b53b29eb8e266a7a3e484c4bfdc57ad37 /config/initializers
parente9775097ec5da895cece3085915865faa4a51710 (diff)
downloadredmine-ea59d93dc82d9675586c4b2e176fb4b7640e3158.tar.gz
redmine-ea59d93dc82d9675586c4b2e176fb4b7640e3158.zip
Dry Users API responders.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4454 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/10-patches.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb
index 096ea0cd1..b196dbd4c 100644
--- a/config/initializers/10-patches.rb
+++ b/config/initializers/10-patches.rb
@@ -92,3 +92,13 @@ module I18n
end
end
end
+
+module ActionController
+ module MimeResponds
+ class Responder
+ def api(&block)
+ any(:xml, :json, &block)
+ end
+ end
+ end
+end