lib/proxy_tester/models/user.rb in proxy_tester-0.0.1 vs lib/proxy_tester/models/user.rb in proxy_tester-0.0.2
- old
+ new
@@ -8,10 +8,10 @@
def self.load_from(source)
source.create_users(self)
end
- def to_string
- sprintf '%s:%s', name, password
+ def to_string(options = {})
+ sprintf '%s:%s', name, options.key?(:cleartext) ? password : '*' * 4
end
end
end