diff --git a/lib/auto_html/auto_html_for.rb b/lib/auto_html/auto_html_for.rb index 33342e65..2f4a66a3 100644 --- a/lib/auto_html/auto_html_for.rb +++ b/lib/auto_html/auto_html_for.rb @@ -21,7 +21,7 @@ def auto_html_for(raw_attrs, &proc) self.send(method) end end - + [raw_attrs].flatten.each do |raw_attr| define_method("auto_html_prepare_#{raw_attr}") do self.send(raw_attr.to_s + AutoHtmlFor.options[:htmlized_attribute_suffix] + "=", diff --git a/lib/auto_html/filters/link.rb b/lib/auto_html/filters/link.rb index b571dba5..761f823b 100644 --- a/lib/auto_html/filters/link.rb +++ b/lib/auto_html/filters/link.rb @@ -3,7 +3,7 @@ # ActionView::Helpers::TextHelper # AutoHtml.add_filter(:link).with({}) do |text, options| - + def tag_options(options) unless options.blank? attrs = []