Resting Pug logo Resting Pug

Description

Includes all methods in controller

Params

Source code

# lib/resting_pug/base.rb

def self.included(base)
  base.class_eval do
    include RestingPug::Actions
    include RestingPug::Chains
    include RestingPug::Render
    include RestingPug::Subject
    include RestingPug::Params
    include RestingPug::Modificators

    rescue_from ActionController::ParameterMissing, with: :render_param_missing
    rescue_from ActiveRecord::RecordNotFound, with: :render_not_found
  end
end
Find me on GitHub