Sha256: e17248b1d172427de2faab1afdf0a49994c75db6ae139d3c92b7d215117975e2
Contents?: true
Size: 810 Bytes
Versions: 3
Compression:
Stored size: 810 Bytes
Contents
# # Sanitize Gem Bridge and Helpers for Rails # # https://github.com/vjt/sanitize-rails # # (C) 2011-2015 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sanitize-rails-1.2.0 | lib/sanitize/rails.rb |
sanitize-rails-1.1.1 | lib/sanitize/rails.rb |
sanitize-rails-1.1.0 | lib/sanitize/rails.rb |