Sha256: 9a3df86ed3d284876c1a66576f67fee750c38b7d6d5f9e5bc331c2f44f712cc1

Contents?: true

Size: 373 Bytes

Versions: 1

Compression:

Stored size: 373 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)
      # label_html << builder.text_field(method, input_html_options)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
glebtv-simple_captcha-0.1.6 lib/simple_captcha/formtastic.rb