Sha256: 578b63040ead11800a87317e17da08fef35ccf2389fc3eefff1b9492f5ac6e03

Contents?: true

Size: 402 Bytes

Versions: 42

Compression:

Stored size: 402 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)
      Inputs::EffectiveEmail::Input.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

42 entries across 42 versions & 1 rubygems

Version Path
effective_form_inputs-1.1.6 app/models/inputs/effective_email_input.rb
effective_form_inputs-1.1.5 app/models/inputs/effective_email_input.rb
effective_form_inputs-1.1.4 app/models/inputs/effective_email_input.rb
effective_form_inputs-1.1.3 app/models/inputs/effective_email_input.rb
effective_form_inputs-1.1.2 app/models/inputs/effective_email_input.rb
effective_form_inputs-1.1.1 app/models/inputs/effective_email_input.rb
effective_form_inputs-1.1.0 app/models/inputs/effective_email_input.rb
effective_form_inputs-1.0.9 app/models/inputs/effective_email_input.rb
effective_form_inputs-1.0.8 app/models/inputs/effective_email_input.rb
effective_form_inputs-1.0.7 app/models/inputs/effective_email_input.rb
effective_form_inputs-1.0.6 app/models/inputs/effective_email_input.rb
effective_form_inputs-1.0.5 app/models/inputs/effective_email_input.rb
effective_form_inputs-1.0.4 app/models/inputs/effective_email_input.rb
effective_form_inputs-1.0.3 app/models/inputs/effective_email_input.rb
effective_form_inputs-1.0.2 app/models/inputs/effective_email_input.rb
effective_form_inputs-1.0.1 app/models/inputs/effective_email_input.rb
effective_form_inputs-1.0.0 app/models/inputs/effective_email_input.rb
effective_form_inputs-0.9.8 app/models/inputs/effective_email_input.rb
effective_form_inputs-0.9.7 app/models/inputs/effective_email_input.rb
effective_form_inputs-0.9.6 app/models/inputs/effective_email_input.rb