lib/masterview/directives/text_field.rb in masterview-0.2.2 vs lib/masterview/directives/text_field.rb in masterview-0.2.3

- old
+ new

@@ -9,11 +9,11 @@ def etag(dcs) args = parse_attr_value obj = args[0] method = args[1] - obj = quote(obj) unless obj =~ /^:|'|"/ - method = quote(method) unless method =~ /^:|'|"/ + obj = quote_if(obj) + method = quote_if(method) options = {} options[:size] = attrs_lck['size'].to_i if attrs_lck['size'] options[:maxlength] = attrs_lck['maxlength'].to_i if attrs_lck['maxlength'] options.merge! common_html_options(attrs_lck)