Sha256: f7050603930251275063b9f734ac7ec271f576e433cac14072d2805c92a10908

Contents?: true

Size: 314 Bytes

Versions: 125

Compression:

Stored size: 314 Bytes

Contents

module FieldsHelper
  def current_fields_form
    @_fields_helper_forms&.last
  end

  def with_field_settings(options)
    @_fields_helper_forms ||= []

    if options[:form]
      @_fields_helper_forms << options[:form]
    end

    yield

    if options[:form]
      @_fields_helper_forms.pop
    end
  end
end

Version data entries

125 entries across 125 versions & 1 rubygems

Version Path
bullet_train-fields-1.10.0 app/helpers/fields_helper.rb
bullet_train-fields-1.9.0 app/helpers/fields_helper.rb
bullet_train-fields-1.8.5 app/helpers/fields_helper.rb
bullet_train-fields-1.8.4 app/helpers/fields_helper.rb
bullet_train-fields-1.8.3 app/helpers/fields_helper.rb
bullet_train-fields-1.8.2 app/helpers/fields_helper.rb
bullet_train-fields-1.8.1 app/helpers/fields_helper.rb
bullet_train-fields-1.8.0 app/helpers/fields_helper.rb
bullet_train-fields-1.7.23 app/helpers/fields_helper.rb
bullet_train-fields-1.7.22 app/helpers/fields_helper.rb
bullet_train-fields-1.7.21 app/helpers/fields_helper.rb
bullet_train-fields-1.7.20 app/helpers/fields_helper.rb
bullet_train-fields-1.7.19 app/helpers/fields_helper.rb
bullet_train-fields-1.7.18 app/helpers/fields_helper.rb
bullet_train-fields-1.7.17 app/helpers/fields_helper.rb
bullet_train-fields-1.7.16 app/helpers/fields_helper.rb
bullet_train-fields-1.7.15 app/helpers/fields_helper.rb
bullet_train-fields-1.7.14 app/helpers/fields_helper.rb
bullet_train-fields-1.7.13 app/helpers/fields_helper.rb
bullet_train-fields-1.7.12 app/helpers/fields_helper.rb