@@ -531,7 +531,7 @@ default_version
531
531
validate
532
532
Parameters validation is turned off when set to false. When set to
533
533
``:explicitly ``, you must invoke parameter validation yourself by calling
534
- controller method ``apipie_validations `` (typically in a before_filter ).
534
+ controller method ``apipie_validations `` (typically in a before_action ).
535
535
When set to ``:implicitly `` (or just true), your controller's action
536
536
methods are wrapped with generated methods which call ``apipie_validations ``,
537
537
and then call the action method. (``:implicitly `` by default)
@@ -729,17 +729,17 @@ is raised and can be rescued and processed. It contains a description
729
729
of the parameter value expectations. Validations can be turned off
730
730
in the configuration file.
731
731
732
- Parameter validation normally happens after before_filters , just before
732
+ Parameter validation normally happens after before_actions , just before
733
733
your controller method is invoked. If you prefer to control when parameter
734
734
validation occurs, set the configuration parameter ``validate `` to ``:explicitly ``.
735
735
You must then call the ``apipie_validations `` method yourself, e.g.:
736
736
737
737
.. code :: ruby
738
738
739
- before_filter : :apipie_validations
739
+ before_action : :apipie_validations
740
740
741
- This is useful if you have before_filters which use parameter values: just add them
742
- after the ``apipie_validations `` before_filter .
741
+ This is useful if you have before_actions which use parameter values: just add them
742
+ after the ``apipie_validations `` before_action .
743
743
744
744
TypeValidator
745
745
-------------
0 commit comments