Sha256: 7d01f5d218fc327722d1ee22ebc53356a30d43b483df002421dcb9c89534a5c7

Contents?: true

Size: 414 Bytes

Versions: 1

Compression:

Stored size: 414 Bytes

Contents

require "rails"

module Jike
  module Captcha
    class Engine < Rails::Engine
      initializer "Actionpack extensions" do
        ActiveSupport.on_load :action_view do
          ActionView::Base.send :include, Jike::Captcha::Helpers
        end

        ActiveSupport.on_load :action_controller do
          ActionController::Metal.send :include, Jike::Captcha::Validation
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jike_captcha-0.0.2.beta lib/jike_captcha/engine.rb