summaryrefslogtreecommitdiffstats
path: root/app/models/repository/bazaar.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-03-01 05:14:03 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-03-01 05:14:03 +0000
commit026c9e87c0640b28381d9b3277bb467905698972 (patch)
treefd0fc313c28f7ff738a57c47fc3b48e3fe25d8d6 /app/models/repository/bazaar.rb
parent571ecf07e3e2ba0c9933dd34c4d563b44c1e5ffc (diff)
downloadredmine-026c9e87c0640b28381d9b3277bb467905698972.tar.gz
redmine-026c9e87c0640b28381d9b3277bb467905698972.zip
scm: add scm specific human_attribute_name for input validation.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4975 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/repository/bazaar.rb')
-rw-r--r--app/models/repository/bazaar.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/models/repository/bazaar.rb b/app/models/repository/bazaar.rb
index 9d7977e7e..d68fabc9a 100644
--- a/app/models/repository/bazaar.rb
+++ b/app/models/repository/bazaar.rb
@@ -21,6 +21,13 @@ class Repository::Bazaar < Repository
attr_protected :root_url
validates_presence_of :url
+ ATTRIBUTE_KEY_NAMES = {
+ "url" => "Root directory",
+ }
+ def self.human_attribute_name(attribute_key_name)
+ ATTRIBUTE_KEY_NAMES[attribute_key_name] || super
+ end
+
def self.scm_adapter_class
Redmine::Scm::Adapters::BazaarAdapter
end