Sha256: 6f6f48f01feb41f0fc5992b9df58a0c06e669dff499c494795a7d3e43c013fa6
Contents?: true
Size: 693 Bytes
Versions: 2
Compression:
Stored size: 693 Bytes
Contents
# frozen_string_literal: true module Capybara module ActiveAdmin module Selectors module AttributesTable def attributes_table_selector(model_name, record_id = nil) return 'div.attributes_table' if model_name.nil? model_name = Util.parse_model_name(model_name) selector = "div.attributes_table.#{model_name}" selector += "#attributes_table_#{model_name}_#{record_id}" if record_id selector end def attributes_row_selector(label) return 'tr.row > td' if label.nil? label = label.to_s.gsub(' ', '_').downcase "tr.row.row-#{label} > td" end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capybara_active_admin-0.3.1 | lib/capybara/active_admin/selectors/attributes_table.rb |
capybara_active_admin-0.3.0 | lib/capybara/active_admin/selectors/attributes_table.rb |