Module: ActionDispatch::Routing::Mapper::HttpHelpers
- Defined in:
- lib/calligraphy/rails/mapper.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#copy(*args, &block) ⇒ Object
Define a Calligraphy route that only recognizes HTTP COPY.
-
#head(*args, &block) ⇒ Object
Define a Calligraphy route that only recognizes HTTP HEAD.
-
#lock(*args, &block) ⇒ Object
Define a Calligraphy route that only recognizes HTTP LOCK.
-
#mkcol(*args, &block) ⇒ Object
Define a Calligraphy route that only recognizes HTTP MKCOL.
-
#move(*args, &block) ⇒ Object
Define a Calligraphy route that only recognizes HTTP MOVE.
-
#options(*args, &block) ⇒ Object
Define a Calligraphy route that only recognizes HTTP OPTIONS.
-
#propfind(*args, &block) ⇒ Object
Define a Calligraphy route that only recognizes HTTP PROPFIND.
-
#proppatch(*args, &block) ⇒ Object
Define a Calligraphy route that only recognizes HTTP PROPPATCH.
-
#unlock(*args, &block) ⇒ Object
Define a Calligraphy route that only recognizes HTTP UNLOCK.
-
#web_dav_delete(*args, &block) ⇒ Object
Define a Calligraphy route that only recognizes HTTP DELETE.
-
#web_dav_get(*args, &block) ⇒ Object
Define a Calligraphy route that only recognizes HTTP GET.
-
#web_dav_put(*args, &block) ⇒ Object
Define a Calligraphy route that only recognizes HTTP PUT.
Instance Method Details
#copy(*args, &block) ⇒ Object
Define a Calligraphy route that only recognizes HTTP COPY.
copy 'bacon', to: 'food#bacon'
10 11 12 13 |
# File 'lib/calligraphy/rails/mapper.rb', line 10 def copy(*args, &block) args = web_dav_args args map_method :copy, args, &block end |
#head(*args, &block) ⇒ Object
Define a Calligraphy route that only recognizes HTTP HEAD.
head 'bacon', to: 'food#bacon'
17 18 19 20 |
# File 'lib/calligraphy/rails/mapper.rb', line 17 def head(*args, &block) args = web_dav_args args map_method :head, args, &block end |
#lock(*args, &block) ⇒ Object
Define a Calligraphy route that only recognizes HTTP LOCK.
lock 'bacon', to: 'food#bacon'
24 25 26 27 |
# File 'lib/calligraphy/rails/mapper.rb', line 24 def lock(*args, &block) args = web_dav_args args map_method :lock, args, &block end |
#mkcol(*args, &block) ⇒ Object
Define a Calligraphy route that only recognizes HTTP MKCOL.
mkcol 'bacon', to: 'food#bacon'
31 32 33 34 |
# File 'lib/calligraphy/rails/mapper.rb', line 31 def mkcol(*args, &block) args = web_dav_args args map_method :mkcol, args, &block end |
#move(*args, &block) ⇒ Object
Define a Calligraphy route that only recognizes HTTP MOVE.
move 'bacon', to: 'food#bacon'
38 39 40 41 |
# File 'lib/calligraphy/rails/mapper.rb', line 38 def move(*args, &block) args = web_dav_args args map_method :move, args, &block end |
#options(*args, &block) ⇒ Object
Define a Calligraphy route that only recognizes HTTP OPTIONS.
'bacon', to: 'food#bacon'
45 46 47 48 |
# File 'lib/calligraphy/rails/mapper.rb', line 45 def (*args, &block) args = web_dav_args args map_method :options, args, &block end |
#propfind(*args, &block) ⇒ Object
Define a Calligraphy route that only recognizes HTTP PROPFIND.
propfind 'bacon', to: 'food#bacon'
52 53 54 55 |
# File 'lib/calligraphy/rails/mapper.rb', line 52 def propfind(*args, &block) args = web_dav_args args map_method :propfind, args, &block end |
#proppatch(*args, &block) ⇒ Object
Define a Calligraphy route that only recognizes HTTP PROPPATCH.
proppatch 'bacon', to: 'food#bacon'
59 60 61 62 |
# File 'lib/calligraphy/rails/mapper.rb', line 59 def proppatch(*args, &block) args = web_dav_args args map_method :proppatch, args, &block end |
#unlock(*args, &block) ⇒ Object
Define a Calligraphy route that only recognizes HTTP UNLOCK.
unlock 'bacon', to: 'food#bacon'
66 67 68 69 |
# File 'lib/calligraphy/rails/mapper.rb', line 66 def unlock(*args, &block) args = web_dav_args args map_method :unlock, args, &block end |
#web_dav_delete(*args, &block) ⇒ Object
Define a Calligraphy route that only recognizes HTTP DELETE.
web_dav_delete 'broccoli', to: 'food#broccoli'
73 74 75 76 |
# File 'lib/calligraphy/rails/mapper.rb', line 73 def web_dav_delete(*args, &block) args = web_dav_args args map_method :delete, args, &block end |
#web_dav_get(*args, &block) ⇒ Object
Define a Calligraphy route that only recognizes HTTP GET.
web_dav_get 'bacon', to: 'food#bacon'
80 81 82 83 |
# File 'lib/calligraphy/rails/mapper.rb', line 80 def web_dav_get(*args, &block) args = web_dav_args args map_method :get, args, &block end |
#web_dav_put(*args, &block) ⇒ Object
Define a Calligraphy route that only recognizes HTTP PUT.
web_dav_put 'bacon', to: 'food#bacon'
87 88 89 90 |
# File 'lib/calligraphy/rails/mapper.rb', line 87 def web_dav_put(*args, &block) args = web_dav_args args map_method :put, args, &block end |