Module: Cms::PublishWorkflow::AllowPublishing

Defined in:
lib/cms/publish_workflow.rb

Instance Method Summary collapse

Instance Method Details

#publish?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/cms/publish_workflow.rb', line 21

def publish?
  params[:commit] == "Publish"
end

#save_draft?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/cms/publish_workflow.rb', line 17

def save_draft?
  params[:commit] == "Save Draft"
end