Removed AuthSourceLdap.human_attribute_name.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10146 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-07-31 17:30:01 +00:00
parent a53894dd22
commit 77d94818a4
49 changed files with 48 additions and 56 deletions
-8
View File
@@ -31,14 +31,6 @@ class AuthSourceLdap < AuthSource
before_validation :strip_ldap_attributes
def self.human_attribute_name(attribute_key_name, *args)
attr_name = attribute_key_name.to_s
if attr_name == "filter"
attr_name = "ldap_filter"
end
super(attr_name, *args)
end
def initialize(attributes=nil, *args)
super
self.port = 389 if self.port == 0
@@ -23,7 +23,7 @@
<p><label for="auth_source_base_dn"><%=l(:field_base_dn)%> <span class="required">*</span></label>
<%= text_field 'auth_source', 'base_dn', :size => 60 %></p>
<p><label for="auth_source_custom_filter"><%=l(:field_ldap_filter)%></label>
<p><label for="auth_source_custom_filter"><%=l(:field_auth_source_ldap_filter)%></label>
<%= text_field 'auth_source', 'filter', :size => 60 %></p>
<p><label for="auth_source_timeout"><%=l(:field_timeout)%></label>