Class: ActionDispatch::Routing::Mapper::Resources::Resource
- Inherits:
-
Object
- Object
- ActionDispatch::Routing::Mapper::Resources::Resource
- Defined in:
- lib/calligraphy/rails/mapper.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#web_dav_actions ⇒ Object
Returns the available WebDAV HTTP verbs based on Calligraphy configuration and Rails routing options.
Instance Method Details
#web_dav_actions ⇒ Object
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 |