class Amatista::Filter

Overview

Callback filters to use before the actions.

Defined in:

amatista/filter.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.execute_blocks(filters, controller, path) #

This will search for the filters callbacks and execute the block if it's not an HTTP::Response


[View source]
def self.find_all(filters, controller, path) #

Finds the filters based on the controller or the ApplicationController father and the paths selected.


[View source]
def self.find_response(filters, controller, path) #

Find a filter that has a block as an HTTP::Response return's value


[View source]
def self.new(controller, paths, condition, block : T) #

[View source]

Instance Method Detail

def block #

def block=(block) #

def condition #

def condition=(condition) #

def controller #

def controller=(controller) #

def paths #

def paths=(paths) #