Sha256: 9186fb64810e5acd3f93f063f656c90a3fb9b04ddaaf9a70afa5e5268a85619f

Contents?: true

Size: 387 Bytes

Versions: 1

Compression:

Stored size: 387 Bytes

Contents

class ApplicationController < ActionController::Base
  protect_from_forgery

  def create
    Trashable.new(:name => 'Bob').draft_creation
    render nothing: true
  end

  def update
    trashable = Trashable.last
    trashable.name = 'Sam'
    trashable.draft_update
    render nothing: true
  end

  def destroy
    Trashable.last.draft_destruction
    render nothing: true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
draftsman-0.4.0 spec/dummy/app/controllers/application_controller.rb