Module: Adva::Markup::ActiveRecord::InstanceMethods

Defined in:
lib/adva/markup/active_record.rb

Instance Method Summary collapse

Instance Method Details

#filter_attributes!Object



37
38
39
40
41
42
43
# File 'lib/adva/markup/active_record.rb', line 37

def filter_attributes!
  filtered_attributes.each do |name|
    value = self.send(name)
    value = Adva::Markup.apply(filter, value) if respond_to?(:filter) && filter
    write_attribute(:"#{name}_html", value)
  end
end