Sha256: 75e26ac9e7a6c063ea88f7293a2a860d41ed4924259bc9f72c10d477e34758d5

Contents?: true

Size: 289 Bytes

Versions: 2

Compression:

Stored size: 289 Bytes

Contents

class PostsController < ApplicationController
  def index
    @posts = []
  end

  def index_with_query
    @posts = Post.all
    render :index
  end

  def index_with_error
    raise StandardError.new("Something terrible happened")
  end

  def index_with_sql_error
    # TODO:
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
caliper-0.0.2 spec/dummy/app/controllers/posts_controller.rb
caliper-0.0.1 spec/dummy/app/controllers/posts_controller.rb