Module: Fidelity::MiscHelper

Defined in:
app/fidelity/helpers/misc_helper.rb

Instance Method Summary collapse

Instance Method Details

#to_html_attributes(*args) ⇒ Object



4
5
6
7
8
9
10
# File 'app/fidelity/helpers/misc_helper.rb', line 4

def to_html_attributes *args      
  [''].tap do |a|
    to_attribute_hash(args).each do |name, value|
      a << %Q(#{name.to_s}="#{value}")
    end
  end.join(' ').html_safe
end