lib/coalla/orm/sanitized.rb in coalla-cms-0.5.2.4 vs lib/coalla/orm/sanitized.rb in coalla-cms-0.6.0.9
- old
+ new
@@ -1,16 +1,12 @@
module Coalla
-
module Sanitized
-
def sanitize_html(attribute, config = Sanitize::Config::DEFAULT)
before_save do
sanitize_attr = Sanitize.fragment(send(attribute), config)
send("#{attribute}=", sanitize_attr)
end
end
-
end
-
end
-ActiveRecord::Base.extend Coalla::Sanitized
+ActiveRecord::Base.extend(Coalla::Sanitized)
\ No newline at end of file