Dry Users API responders.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4454 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2010-12-03 11:45:55 +00:00
parent e9775097ec
commit ea59d93dc8
2 changed files with 14 additions and 8 deletions
+10
View File
@@ -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