From d7adbbc72c4ec46085431709784eadc6e7ca5ec1 Mon Sep 17 00:00:00 2001 From: Dan Healy Date: Thu, 16 Nov 2023 16:08:07 -0800 Subject: [PATCH] Remove extra guard in params.rb Co-authored-by: Philip Arndt --- lib/hanami/action/params.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/hanami/action/params.rb b/lib/hanami/action/params.rb index 1ff4a9f1..0f97a318 100644 --- a/lib/hanami/action/params.rb +++ b/lib/hanami/action/params.rb @@ -174,11 +174,6 @@ def self.params(&blk) # end # end def self.rule(*keys, &blk) - unless self._validator - raise ArgumentError.new( - "The params schema must be defined prior to adding rules." - ) - end self._validator.class.rule(*keys, &blk) end