galetahub/simple-captcha — pull request #16 by JediFreeman (2012-02-21 18:41:21+00:00)
Title: fixes for Rails 3.x and Formtastic 2.1

add_to_base is deprecated in Rails 3, and completely removed in Rails 3.2. I have a one-line change that resolves that deprecation error.

In addition, Formtastic 2.1 does not use Formtastic::SemanticFormBuilder, it uses Formtastic::FormBuilder, so I have updated the reference to that class in the appropriate place.

It is important to note that referencing Formtastic::FormBuilder is a stopgap fix, the real fix should be to define a new custom input using the new way that Formtastic opens up and not inheriting from FormBuilder at all. (see the 2.1 Formtastic docs for info, one example of where this new custom input definition is being used is in the active_admin project).