Sha256: 63c6923368d5a150b059c1f166b379cfa8b481d241eed24e7ac00882dd68e82d
Contents?: true
Size: 810 Bytes
Versions: 2
Compression:
Stored size: 810 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 '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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sanitize-rails-1.0.0 | lib/sanitize/rails.rb |
sanitize-rails-0.9.1 | lib/sanitize/rails.rb |