Sha256: 083860053652409e8452a915ab4c6ffb00ded1ff458f5466f60a8b718c7f2cc8

Contents?: true

Size: 417 Bytes

Versions: 3

Compression:

Stored size: 417 Bytes

Contents

# = simple_form_for @thing do |f|
#   = f.input :email, :as => :effective_email

if defined?(SimpleForm)

  class EffectiveEmailInput < SimpleForm::Inputs::StringInput
    def input(wrapper_options = nil)
      Effective::FormBuilderInputs::EffectiveEmail.new(object, object_name, template, attribute_name, input_options, (merge_wrapper_options(input_html_options, wrapper_options) || {})).to_html
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
effective_form_inputs-1.5.0 lib/effective_form_inputs/inputs/effective_email_input.rb
effective_form_inputs-1.4.1 lib/effective_form_inputs/inputs/effective_email_input.rb
effective_form_inputs-1.4.0 lib/effective_form_inputs/inputs/effective_email_input.rb