module Archangel::TestingSupport::InputExampleGroup

SimpleForm input meta type for testing

Public Instance Methods

input_for(object, attribute_name, options = {}) click to toggle source
# File lib/archangel/testing_support/support/inputs.rb, line 13
def input_for(object, attribute_name, options = {})
  helper.simple_form_for object, url: "" do |form|
    form.input attribute_name, options
  end
end