Sha256: c7712b5db9b06bac2f5ce7d474e8e4a776824c74f24db6a8202a16e0c5ff4cb4

Contents?: true

Size: 550 Bytes

Versions: 4

Compression:

Stored size: 550 Bytes

Contents

module YandexCaptcha
  class Engine < Rails::Engine
    isolate_namespace YandexCaptcha
    engine_name 'yandex_captcha'

    if Rails.version >= '3.1'
      initializer :assets do |app|
        app.config.assets.precompile += %w( yandex_captcha/captcha.js yandex_captcha/captcha.css yandex_captcha/loading.gif )
      end
    end

    initializer "setup config" do
      begin
        ActionView::Base.send(:include, ::YandexCaptcha::Helpers::Rails)
        ActionController::Base.send(:include, ::YandexCaptcha::Verify)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
yandex_captcha-0.4.3.1 lib/yandex_captcha/engine.rb
yandex_captcha-0.4.3 lib/yandex_captcha/engine.rb
yandex_captcha-0.4.1 lib/yandex_captcha/engine.rb
yandex_captcha-0.4.0 lib/yandex_captcha/engine.rb