Module: ViewData::PG::Controls::Commands::Delete

Defined in:
lib/view_data/pg/controls/commands.rb

Class Method Summary collapse

Class Method Details

.example(primary_key: nil, table: nil) ⇒ Object



34
35
36
37
38
39
40
41
42
# File 'lib/view_data/pg/controls/commands.rb', line 34

def self.example(primary_key: nil, table: nil)
  primary_key ||= PrimaryKey::UUID.example
  table ||= Table.name

  ViewData::Commands::Controls::Delete.example(
    name: table,
    identifier: primary_key
  )
end