Description
Creates a chain of methods for showing a subject
Tip
Override this method to add or remove methods executed while showing a subject
Used in
Use
Example
class BooksController < ApplicationController
include RestingPug::Base
private
# Override a show chain adding logging to the end
def show_chain
super + [:log_showing_subject]
end
end
Source code
# lib/resting_pug/chains.rb
def show_chain
[:fetch_subject, :render_subject]
end