Open alex-fedorov opened 8 years ago
You can define inherited hook on base controller. Example:
inherited
http://play.crystal-lang.org/#/r/7kn
all the hooks can be found in this spec: https://github.com/manastech/crystal/blob/119ccc89065165bc937b3417e5ac2af2bab6e056/spec/compiler/codegen/hooks_spec.cr
Wow that's pretty neat :+1:
You can define
inherited
hook on base controller. Example:http://play.crystal-lang.org/#/r/7kn
all the hooks can be found in this spec: https://github.com/manastech/crystal/blob/119ccc89065165bc937b3417e5ac2af2bab6e056/spec/compiler/codegen/hooks_spec.cr