module Railsdav::ControllerExtensions::RespondWithWebdav

ruby 2+ compatibility

Public Instance Methods

respond_to(*mimes, &block) click to toggle source

decorate behaviour defined in ActionController::MimeResponds

Calls superclass method
# File lib/railsdav/controller_extensions.rb, line 10
def respond_to(*mimes, &block)
  if request.propfind?
    render :webdav => :propstat, :respond_to_block => block
  else
    super *mimes, &block
  end
end
respond_with(*resources, &block) click to toggle source

decorate behaviour defined in ActionController::MimeResponds

Calls superclass method
# File lib/railsdav/controller_extensions.rb, line 19
def respond_with(*resources, &block)
  if request.propfind?
    render :webdav => :propstat, :respond_to_block => block
  else
    super *resources, &block
  end
end