Module: Lore::Model_Shortcuts

Included in:
Table_Accessor
Defined in:
lib/lore/model_shortcuts.rb

Instance Method Summary collapse

Instance Method Details

#html_escape_values_of(*attributes) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/lore/model_shortcuts.rb', line 6

def html_escape_values_of(*attributes)
  attributes.each { |attrib|
    add_input_filter(attrib) { |a|
      a.gsub("'",''')
    }
  }
end