Class: ActionDispatch::Routing::Mapper::Resources::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/calligraphy/rails/mapper.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#web_dav_actionsObject

Returns the available WebDAV HTTP verbs based on Calligraphy configuration and Rails routing options.



109
110
111
112
113
114
115
116
117
# File 'lib/calligraphy/rails/mapper.rb', line 109

def web_dav_actions
  if @only
    Array(@only).map(&:to_sym)
  elsif @except
    Calligraphy.web_dav_actions - Array(@except).map(&:to_sym)
  else
    Calligraphy.web_dav_actions
  end
end