summaryrefslogtreecommitdiffstats
path: root/app/models/repository/bazaar.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/repository/bazaar.rb')
-rw-r--r--app/models/repository/bazaar.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/models/repository/bazaar.rb b/app/models/repository/bazaar.rb
index a4c39b471..3248331af 100644
--- a/app/models/repository/bazaar.rb
+++ b/app/models/repository/bazaar.rb
@@ -21,11 +21,12 @@ class Repository::Bazaar < Repository
attr_protected :root_url
validates_presence_of :url, :log_encoding
- ATTRIBUTE_KEY_NAMES = {
- "url" => "Path to repository",
- }
def self.human_attribute_name(attribute_key_name)
- ATTRIBUTE_KEY_NAMES[attribute_key_name] || super
+ attr_name = attribute_key_name
+ if attr_name == "url"
+ attr_name = "path_to_repository"
+ end
+ super(attr_name)
end
def self.scm_adapter_class