diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-12-03 11:45:55 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-12-03 11:45:55 +0000 |
commit | ea59d93dc82d9675586c4b2e176fb4b7640e3158 (patch) | |
tree | 3980135b53b29eb8e266a7a3e484c4bfdc57ad37 /config/initializers | |
parent | e9775097ec5da895cece3085915865faa4a51710 (diff) | |
download | redmine-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.rb | 10 |
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 |