Sha256: 77881f9ba6e5e05d9e8bcfe1cf63b83589b348c73d42d7ae76a6960bc09bca68

Contents?: true

Size: 833 Bytes

Versions: 1

Compression:

Stored size: 833 Bytes

Contents

#
# Sanitize Gem Bridge and Helpers for Rails
#
# https://github.com/vjt/sanitize-rails
#
# (C) 2011-2014 vjt@openssl.it
#
# MIT License
#
require 'sanitize'
require 'htmlentities'
require 'sanitize/rails/railtie' if defined? Rails

module Sanitize::Rails
  autoload :Engine,       'sanitize/rails/engine'
  autoload :ActionView,   'sanitize/rails/action_view'
  autoload :ActiveRecord, 'sanitize/rails/active_record'
  autoload :String,       'sanitize/rails/string'
  autoload :VERSION,      'sanitize/rails/version'

  # Configures the sanitizer with the given `config` hash.
  #
  # In your environment.rb, in the after_initialize block:
  #
  #   Sanitize::Rails.configure(
  #     :elements => [ ... ],
  #     :attributes => [ ... ],
  #     ...
  #   )
  #
  def self.configure(config)
    Engine.configure(config)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sanitize-rails-1.0.1 lib/sanitize/rails.rb