module Railsdav::ControllerExtensions
Public Instance Methods
respond_to_with_webdav(*mimes, &block)
click to toggle source
decorate behaviour defined in ActionController::MimeResponds
# File lib/railsdav/controller_extensions.rb, line 59 def respond_to_with_webdav(*mimes, &block) if request.propfind? render :webdav => :propstat, :respond_to_block => block else respond_to_without_webdav *mimes, &block end end
respond_with_with_webdav(*resources, &block)
click to toggle source
decorate behaviour defined in ActionController::MimeResponds
# File lib/railsdav/controller_extensions.rb, line 68 def respond_with_with_webdav(*resources, &block) if request.propfind? render :webdav => :propstat, :respond_to_block => block else respond_with_without_webdav *resources, &block end end
webdav_metadata_for_current_action()
click to toggle source
# File lib/railsdav/controller_extensions.rb, line 76 def webdav_metadata_for_current_action self.class.webdav_metadata_for_action params[:action] end