Clean up syntax
This commit is contained in:
@@ -7,7 +7,7 @@ module Calligraphy
|
||||
|
||||
@resource.create_collection
|
||||
set_content_location_header
|
||||
|
||||
|
||||
return :created
|
||||
end
|
||||
|
||||
|
||||
@@ -138,7 +138,7 @@ module Calligraphy::Rails
|
||||
|
||||
def get(head: false)
|
||||
fresh_when(@resource, etag: @resource.etag) if @resource.readable?
|
||||
|
||||
|
||||
Calligraphy::Get.new(web_dav_request).request(head: head)
|
||||
end
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@ module Calligraphy
|
||||
@resource.unlock lock_token_header
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def lock_token_header
|
||||
@headers['Lock-Token'].gsub Calligraphy::LOCK_TOKEN_ANGLE_REGEX, ''
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user