Module: Lore::Model_Shortcuts
- Included in:
- Table_Accessor
- Defined in:
- lib/lore/model/model_shortcuts.rb
Instance Method Summary collapse
Instance Method Details
#html_escape_values_of(*attributes) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/lore/model/model_shortcuts.rb', line 6 def html_escape_values_of(*attributes) attributes.each { |attrib| add_input_filter(attrib) { |a| a = a.to_s a.gsub("'",''') a.gsub("\"",'"') } add_output_filter(attrib) { |a| a = a.to_s a.gsub("'",''') a.gsub("\"",'"') } } end |