module UnlockAutoHtml::ActiveRecord::ClassMethods
Public Instance Methods
unlock_auto_html_for(*attributes)
click to toggle source
# File lib/unlock_auto_html/active_record.rb, line 9 def unlock_auto_html_for *attributes attributes.each do |attribute| self.auto_html_for attribute do html_escape map: { '&' => '&', '>' => '>', '<' => '<', '"' => '"' } image youtube width: '100%', height: 403, wmode: "opaque" vimeo width: '100%', height: 403 soundcloud width: '100%', height: 403 redcloth target: :_blank link target: :_blank end end end