Sha256: 0a23265842c78401f23b21a86aec30070a2a17c19dd352af6c8901984baa40b2

Contents?: true

Size: 382 Bytes

Versions: 3

Compression:

Stored size: 382 Bytes

Contents

%w(base filter builder auto_html_for).each do |f|
  require File.expand_path("../auto_html/#{f}", __FILE__)
end

Dir["#{File.dirname(__FILE__) + '/auto_html/filters'}/**/*"].each do |filter|
  require "#{filter}"
end

# if rails
if defined?(ActiveRecord::Base)
  ActiveRecord::Base.send :include, AutoHtmlFor

  module ActionView::Helpers::TextHelper
    include AutoHtml
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
auto_html-1.4.2 lib/auto_html.rb
auto_html-1.4.1 lib/auto_html.rb
auto_html-1.4.0 lib/auto_html.rb