lib/validate_params.rb in validate-params-0.1.0 vs lib/validate_params.rb in validate-params-0.2.0
- old
+ new
@@ -4,5 +4,9 @@
require_relative "validate_params/params_validator"
module ValidateParams
class Error < StandardError; end
end
+
+ActiveSupport.on_load(:action_controller) do
+ include ValidateParams
+end