Module: Pageflow::ActiveAdminPatches::Views::AttributesTable

Defined in:
lib/pageflow/active_admin_patches/views/attributes_table.rb

Instance Method Summary collapse

Instance Method Details

#boolean_status_tag_row(name, yes_state = :warning) ⇒ Object



5
6
7
8
9
# File 'lib/pageflow/active_admin_patches/views/attributes_table.rb', line 5

def boolean_status_tag_row(name, yes_state = :warning)
  status_tag_row(name,
                 [I18n.t('active_admin.status_tag.yes'), '-'],
                 [yes_state, nil])
end