Sha256: cd408b3a18506faa1ca0c2eeb040af9b8469f0b542fac6bb08cd00ca2d900a9d

Contents?: true

Size: 521 Bytes

Versions: 8

Compression:

Stored size: 521 Bytes

Contents

# frozen_string_literal: true

module InvisibleCaptcha
  class Railtie < Rails::Railtie
    initializer 'invisible_captcha.rails_integration' do
      ActiveSupport.on_load(:action_controller) do
        include InvisibleCaptcha::ControllerExt
        extend InvisibleCaptcha::ControllerExt::ClassMethods
      end

      ActiveSupport.on_load(:action_view) do
        include InvisibleCaptcha::ViewHelpers
        ActionView::Helpers::FormBuilder.send :include, InvisibleCaptcha::FormHelpers
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
invisible_captcha-2.3.0 lib/invisible_captcha/railtie.rb
invisible_captcha-2.2.0 lib/invisible_captcha/railtie.rb
invisible_captcha-2.1.0 lib/invisible_captcha/railtie.rb
invisible_captcha-2.0.0 lib/invisible_captcha/railtie.rb
invisible_captcha-1.1.0 lib/invisible_captcha/railtie.rb
invisible_captcha-1.0.1 lib/invisible_captcha/railtie.rb
invisible_captcha-1.0.0 lib/invisible_captcha/railtie.rb
invisible_captcha-0.13.0 lib/invisible_captcha/railtie.rb