Sha256: 3013f4a4324ea34e8c9ed4aa4db1c3a180400ccea14e1c02000001befd8726a9

Contents?: true

Size: 378 Bytes

Versions: 13

Compression:

Stored size: 378 Bytes

Contents

if defined? Formtastic
  require 'formtastic/version'
  if Formtastic::VERSION < '2.2'
    raise 'Only Formtastic Version 2.2 or greater is supported by SimpleCaptcha'
  end

  class SimpleCaptchaInput
    include Formtastic::Inputs::Base
    def to_html
      options.update :object => sanitized_object_name
      builder.send(:show_simple_captcha, options)
    end
  end

end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
simple_captcha2-0.5.0 lib/simple_captcha/formtastic.rb
simple_captcha2-0.4.3 lib/simple_captcha/formtastic.rb
simple_captcha2-0.4.2 lib/simple_captcha/formtastic.rb
yl_simple_captcha-1.1.0 lib/simple_captcha/formtastic.rb
simple_captcha2-0.4.0 lib/simple_captcha/formtastic.rb
simple_captcha2-0.3.4 lib/simple_captcha/formtastic.rb
simple_captcha2-0.3.3 lib/simple_captcha/formtastic.rb
simple_captcha2-0.3.2 lib/simple_captcha/formtastic.rb
simple_captcha2-0.3.1 lib/simple_captcha/formtastic.rb
simple_captcha2-0.2.2 lib/simple_captcha/formtastic.rb
simple_captcha2-0.3.0 lib/simple_captcha/formtastic.rb
simple_captcha2-0.2.1 lib/simple_captcha/formtastic.rb
simple_captcha2-0.2.0 lib/simple_captcha/formtastic.rb