Sha256: d5c02e59e6d23572881360d7b5bb32f77b721200afeaaff8ce28faa28ed82034

Contents?: true

Size: 493 Bytes

Versions: 1

Compression:

Stored size: 493 Bytes

Contents

# frozen_string_literal: true

module Capybara
  module ActiveAdmin
    module Finders
      module AttributesTable
        # @param model_name [Class<Object>, nil] model name or class.
        # @param record_id [String, Numeric, nil]
        # @yield within attributes table
        def within_attributes_table_for(model_name, record_id = nil)
          selector = attributes_table_selector(model_name, record_id)
          within(selector) { yield }
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capybara_active_admin-0.3.0 lib/capybara/active_admin/finders/attributes_table.rb