Sha256: 5705a51eca31b06265ffdeaeed4c144be91b450c64d1024416bb9cf26a88aa3d

Contents?: true

Size: 549 Bytes

Versions: 3

Compression:

Stored size: 549 Bytes

Contents

# = simple_form_for @thing do |f|
#   = f.input :website, :as => :effective_url
#   = f.input :website, :as => :effective_url, :glyphicon => false
#   = f.input :website, :as => :effective_url, :fontawesome => false

if defined?(SimpleForm)

  class EffectiveUrlInput < SimpleForm::Inputs::StringInput
    def input(wrapper_options = nil)
      Effective::FormBuilderInputs::EffectiveUrl.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_url_input.rb
effective_form_inputs-1.4.1 lib/effective_form_inputs/inputs/effective_url_input.rb
effective_form_inputs-1.4.0 lib/effective_form_inputs/inputs/effective_url_input.rb