Skip to content
Snippets Groups Projects
Commit 59f92c97 authored by Francisco Juan's avatar Francisco Juan
Browse files

fix redmine checkout plugin for ruby 1.9.2

parent 2ea72662
Branches
Tags
No related merge requests found
......@@ -71,14 +71,14 @@ module Checkout
@access
end
end
def access_label(user)
case access_rw(user)
when 'read+write': :label_access_read_write
when 'read-only': :label_access_read_only
when 'read+write' then :label_access_read_write
when 'read-only' then :label_access_read_only
end
end
def fixed_url
@fixed_url.present? ? @fixed_url : begin
if (regex.blank? || regex_replacement.blank?)
......@@ -93,7 +93,7 @@ module Checkout
def url(path = "")
return "" unless repository
url = fixed_url.sub(/\/+$/, "")
if repository.allow_subtree_checkout? && self.append_path? && path.present?
url = "#{url}/#{path}"
......@@ -115,4 +115,4 @@ module Checkout
url
end
end
end
\ No newline at end of file
end
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment