Sha256: fd6b79125377371ad9fceb4b1bc718b057f1052ff23b70111b1271b7701124bc

Contents?: true

Size: 560 Bytes

Versions: 2

Compression:

Stored size: 560 Bytes

Contents

class CakesController < ApplicationController

  power :crud => :cakes, :as => :end_of_association_chain

  def show
    notify_spy
  end

  def index
    notify_spy
  end

  def new
    notify_spy
  end

  def create
    notify_spy
  end

  def edit
    notify_spy
  end

  def update
    notify_spy
  end

  def destroy
    notify_spy
  end

  def custom_action
    notify_spy
  end

  private

  def notify_spy
    observe_end_of_association_chain(end_of_association_chain)
  end

  def observe_end_of_association_chain(scope)
    # spy for spec
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
consul-0.4.0 spec/rails-2.3/app_root/app/controllers/cakes_controller.rb
consul-0.3.0 spec/app_root/app/controllers/cakes_controller.rb