Sha256: 7de3caac68e02e8b42d3e79374c0b16ca5808b14b609bac23be441ee10f41630
Contents?: true
Size: 568 Bytes
Versions: 1
Compression:
Stored size: 568 Bytes
Contents
require 'rails' require 'rakismet' module Rakismet class Railtie < Rails::Railtie config.rakismet = ActiveSupport::OrderedOptions.new config.rakismet.host = 'rest.akismet.com' config.rakismet.use_middleware = true initializer 'rakismet.setup', :after => :load_config_initializers do |app| Rakismet.key = app.config.rakismet.key Rakismet.url = app.config.rakismet.url Rakismet.host = app.config.rakismet.host app.middleware.use Rakismet::Middleware if app.config.rakismet.use_middleware end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rakismet-1.0.0 | lib/rakismet/railtie.rb |