Sha256: 846d1f19632191de610538a2e2a6c1bd7abfe937dda7bd581fa7134bd3c8abd9
Contents?: true
Size: 267 Bytes
Versions: 20
Compression:
Stored size: 267 Bytes
Contents
require 'action_view' AutoHtml.add_filter(:simple_format).with({}) do |text, html_options| args = [text, {}, {:sanitize => false}] begin ActionView::Base.new.simple_format(*args) rescue ArgumentError # Rails 2 support args.pop retry end end
Version data entries
20 entries across 20 versions & 2 rubygems