Jason Lee 2017-02-15 12:03:24 +08:00
parent 3b8d33f97a
commit 46ddd15905
1 changed files with 7 additions and 2 deletions

View File

@ -35,5 +35,10 @@ module RuCaptcha
end
end
ActionController::Base.send(:include, RuCaptcha::ControllerHelpers)
ActionView::Base.send(:include, RuCaptcha::ViewHelpers)
ActiveSupport.on_load(:action_controller) do
ActionController::Base.send :include, RuCaptcha::ControllerHelpers
end
ActiveSupport.on_load(:active_view) do
include RuCaptcha::ViewHelpers
end