Sha256: 62301588fe8ec16e74d240603d7f0898d7c6e68f1b2131a44e8e4a4ecdc37557

Contents?: true

Size: 304 Bytes

Versions: 18

Compression:

Stored size: 304 Bytes

Contents

require "formtastic"

class SimpleCaptchaInput
  include ::Formtastic::Inputs::Base
  include ::Formtastic::Inputs::Base::Stringish

  def to_html
    input_wrapping do
      input_html_options.update :object => method
      label_html << builder.show_simple_captcha(input_html_options)
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
glebtv-simple_captcha-0.8.1 lib/simple_captcha/hooks/formtastic.rb
glebtv-simple_captcha-0.8.0 lib/simple_captcha/hooks/formtastic.rb
glebtv-simple_captcha-0.7.0 lib/simple_captcha/hooks/formtastic.rb
glebtv-simple_captcha-0.6.7 lib/simple_captcha/hooks/formtastic.rb
glebtv-simple_captcha-0.6.5 lib/simple_captcha/hooks/formtastic.rb
glebtv-simple_captcha-0.6.4 lib/simple_captcha/hooks/formtastic.rb
glebtv-simple_captcha-0.6.3 lib/simple_captcha/hooks/formtastic.rb
glebtv-simple_captcha-0.6.2 lib/simple_captcha/hooks/formtastic.rb
glebtv-simple_captcha-0.6.1 lib/simple_captcha/hooks/formtastic.rb
glebtv-simple_captcha-0.6.0 lib/simple_captcha/hooks/formtastic.rb
glebtv-simple_captcha-0.5.2 lib/simple_captcha/hooks/formtastic.rb
glebtv-simple_captcha-0.5.1 lib/simple_captcha/hooks/formtastic.rb
glebtv-simple_captcha-0.4.6 lib/simple_captcha/hooks/formtastic.rb
glebtv-simple_captcha-0.4.5 lib/simple_captcha/hooks/formtastic.rb
glebtv-simple_captcha-0.4.4 lib/simple_captcha/hooks/formtastic.rb
glebtv-simple_captcha-0.4.3 lib/simple_captcha/hooks/formtastic.rb
glebtv-simple_captcha-0.4.1 lib/simple_captcha/hooks/formtastic.rb
glebtv-simple_captcha-0.3.1 lib/simple_captcha/hooks/formtastic.rb