method
_compile_filter
v3.0.0 -
Show latest stable
-
0 notes -
Class: ActiveSupport::Callbacks::Callback
- 1.0.0
- 1.1.6
- 1.2.6
- 2.0.3
- 2.1.0
- 2.2.1
- 2.3.8
- 3.0.0 (0)
- 3.0.9 (-2)
- 3.1.0 (0)
- 3.2.1 (0)
- 3.2.8 (0)
- 3.2.13 (0)
- 4.0.2 (1)
- 4.1.8
- 4.2.1
- 4.2.7
- 4.2.9
- 5.0.0.1
- 5.1.7
- 5.2.3
- 6.0.0
- 6.1.3.1
- 6.1.7.7
- 7.0.0
- 7.1.3.2
- What's this?
_compile_filter(filter)
private
Filters support:
Arrays:: Used in conditions. This is used to specify multiple conditions. Used internally to merge conditions from skip_* filters Symbols:: A method to call Strings:: Some content to evaluate Procs:: A proc to call with the object Objects:: An object with a before_foo method on it to call
All of these objects are compiled into methods and handled the same after this point:
Arrays:: Merged together into a single filter Symbols:: Already methods Strings:: class_eval'ed into methods Procs:: define_method'ed into methods Objects:: a method is created that calls the before_foo method on the object.