Module: ActiveVersioning::Workflow::DraftActions

Defined in:
lib/active_versioning/workflow/draft_actions.rb

Instance Method Summary collapse

Instance Method Details

#draft_actionsObject



4
5
6
7
8
9
10
11
12
13
# File 'lib/active_versioning/workflow/draft_actions.rb', line 4

def draft_actions
  if object.new_record?
    actions
  else
    actions do
      action :submit, label: t('active_versioning.actions.draft')
      cancel_link
    end
  end
end