Permalink
Browse files

Merge pull request #8 from korin/master

Formtastic::SemanticFormHelper is removed use Formtastic::Helpers::FormHelper instead
  • Loading branch information...
2 parents cf375a9 + 35f4546 commit 0807f55a41810ce5f7368a84d7d627f99ae824c9 @galetahub galetahub committed Nov 20, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/simple_captcha/engine.rb
@@ -9,16 +9,16 @@ class Engine < ::Rails::Engine
ActiveRecord::Base.send(:include, SimpleCaptcha::ModelHelpers)
end
end
-
+
config.after_initialize do
ActionView::Base.send(:include, SimpleCaptcha::ViewHelper)
ActionView::Helpers::FormBuilder.send(:include, SimpleCaptcha::FormBuilder)
-
+
if Object.const_defined?("Formtastic")
- Formtastic::SemanticFormHelper.builder = SimpleCaptcha::CustomFormBuilder
+ Formtastic::Helpers::FormHelper.builder = SimpleCaptcha::CustomFormBuilder
end
end
-
+
config.app_middleware.use SimpleCaptcha::Middleware
end
end

0 comments on commit 0807f55

Please sign in to comment.