Sha256: 603f6e5d297f115f506856844ac8b34fbbb52f8b80f0ce4a5b21d009df88982b

Contents?: true

Size: 413 Bytes

Versions: 79

Compression:

Stored size: 413 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)
      Inputs::EffectiveStaticControl::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

79 entries across 79 versions & 1 rubygems

Version Path
effective_form_inputs-0.9.5 app/models/inputs/effective_static_control_input.rb
effective_form_inputs-0.9.4 app/models/inputs/effective_static_control_input.rb
effective_form_inputs-0.9.3 app/models/inputs/effective_static_control_input.rb
effective_form_inputs-0.9.2 app/models/inputs/effective_static_control_input.rb
effective_form_inputs-0.9.1 app/models/inputs/effective_static_control_input.rb
effective_form_inputs-0.9.0 app/models/inputs/effective_static_control_input.rb
effective_form_inputs-0.8.18 app/models/inputs/effective_static_control_input.rb
effective_form_inputs-0.8.17 app/models/inputs/effective_static_control_input.rb
effective_form_inputs-0.8.16 app/models/inputs/effective_static_control_input.rb
effective_form_inputs-0.8.15 app/models/inputs/effective_static_control_input.rb
effective_form_inputs-0.8.14 app/models/inputs/effective_static_control_input.rb
effective_form_inputs-0.8.13 app/models/inputs/effective_static_control_input.rb
effective_form_inputs-0.8.12 app/models/inputs/effective_static_control_input.rb
effective_form_inputs-0.8.11 app/models/inputs/effective_static_control_input.rb
effective_form_inputs-0.8.10 app/models/inputs/effective_static_control_input.rb
effective_form_inputs-0.8.9 app/models/inputs/effective_static_control_input.rb
effective_form_inputs-0.8.8 app/models/inputs/effective_static_control_input.rb
effective_form_inputs-0.8.7 app/models/inputs/effective_static_control_input.rb
effective_form_inputs-0.8.6 app/models/inputs/effective_static_control_input.rb
effective_form_inputs-0.8.5 app/models/inputs/effective_static_control_input.rb