Sha256: 9947b737d9bf44efb41bcba7a44b95e5c073e59f44af49fb225a0d7c5280294f

Contents?: true

Size: 437 Bytes

Versions: 10

Compression:

Stored size: 437 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
require 'auto_html/railtie' if defined?(Rails::Railtie)
if defined?(ActiveRecord::Base)
  ActiveRecord::Base.send :include, AutoHtmlFor

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
auto_html-1.6.4 lib/auto_html.rb
auto_html-1.6.3 lib/auto_html.rb
auto_html-1.5.1.1 lib/auto_html.rb
auto_html-1.6.2 lib/auto_html.rb
auto_html-1.6.1 lib/auto_html.rb
auto_html-1.6.0 lib/auto_html.rb
auto_html-1.5.3 lib/auto_html.rb
auto_html-1.5.2 lib/auto_html.rb
auto_html-1.5.1 lib/auto_html.rb
auto_html-1.5.0 lib/auto_html.rb