Sha256: b3568ec1df9cb27497010cd3ea76c34114f37fe840d0372d58a4a215be57bef0
Contents?: true
Size: 531 Bytes
Versions: 2
Compression:
Stored size: 531 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 ActionView::Base.send(:include, ::YandexCaptcha::Helpers::Rails) ActionController::Base.send(:include, ::YandexCaptcha::Helpers::Base) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yandex_captcha-0.4.3.8 | lib/yandex_captcha/engine.rb |
yandex_captcha-0.4.3.7 | lib/yandex_captcha/engine.rb |