Sha256: 55a3bfa99942f9c1d02866f5a8b3a9f13fee186169b199e808c39d51ae858ee5

Contents?: true

Size: 428 Bytes

Versions: 3

Compression:

Stored size: 428 Bytes

Contents

# = simple_form_for @thing do |f|
#   = f.input :member_id, :as => :static

if defined?(SimpleForm)

  class EffectiveStaticControlInput < SimpleForm::Inputs::StringInput
    def input(wrapper_options = nil)
      Effective::FormBuilderInputs::EffectiveStaticControl.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_static_control_input.rb
effective_form_inputs-1.4.1 lib/effective_form_inputs/inputs/effective_static_control_input.rb
effective_form_inputs-1.4.0 lib/effective_form_inputs/inputs/effective_static_control_input.rb