Sha256: b312c5f4b409bcaf744756e849247cc5f30664a67b30d9a828c5940132a79447

Contents?: true

Size: 474 Bytes

Versions: 1

Compression:

Stored size: 474 Bytes

Contents

require "antispam/version"
require "antispam/engine"
require "antispam/tools"
require "antispam/blacklists/httpbl"

module Antispam
  ActiveSupport.on_load(:action_controller) do
    # self refers to ActionController::Base here
    # This way is removed because below may be more compatible.
    # self.include Antispam::Tools
    # Would the below be a better (clearer? more compatible?) way to do this?
    ActionController::Base.send(:include, Antispam::Tools)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
antispam-0.1.5 lib/antispam.rb