module RestingPug::Base

Main module

Public Class Methods

included(base) click to toggle source

Includes all methods in controller @param base [ActionController::Base]

# File lib/resting_pug/base.rb, line 15
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