Sha256: 6efb478ed59959237c11e21dd1f5c2653892d8871adbcbf0cd5da66cad8d6bc1

Contents?: true

Size: 267 Bytes

Versions: 14

Compression:

Stored size: 267 Bytes

Contents

# frozen_string_literal: true

module FormsHelper
  def smart_form_fields_path(form)
    case form
    when Form
      form_fields_path(form)
    when NestedForm
      nested_form_fields_path(form)
    else
      raise "Unknown form: #{form.class}"
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
script_core-0.3.2 spec/dummy/app/helpers/forms_helper.rb
script_core-0.3.0 spec/dummy/app/helpers/forms_helper.rb
script_core-0.2.7 spec/dummy/app/helpers/forms_helper.rb
script_core-0.2.6 spec/dummy/app/helpers/forms_helper.rb
script_core-0.2.5 spec/dummy/app/helpers/forms_helper.rb
script_core-0.2.4 spec/dummy/app/helpers/forms_helper.rb
script_core-0.2.3 spec/dummy/app/helpers/forms_helper.rb
script_core-0.2.2 spec/dummy/app/helpers/forms_helper.rb
script_core-0.2.1 spec/dummy/app/helpers/forms_helper.rb
script_core-0.2.0 spec/dummy/app/helpers/forms_helper.rb
script_core-0.1.1 spec/dummy/app/helpers/forms_helper.rb
script_core-0.1.0 spec/dummy/app/helpers/forms_helper.rb
script_core-0.0.6 spec/dummy/app/helpers/forms_helper.rb
script_core-0.0.5 spec/dummy/app/helpers/forms_helper.rb