diff --git a/src/avram/paramable.cr b/src/avram/paramable.cr index 8adb08d0f..ed7e01a5f 100644 --- a/src/avram/paramable.cr +++ b/src/avram/paramable.cr @@ -3,4 +3,8 @@ module Avram::Paramable abstract def nested(key : String) : Hash(String, String) abstract def get?(key : String) abstract def get(key : String) + + def has_key_for?(operation : Avram::Operation.class | Avram::SaveOperation.class) : Bool + nested?(operation.param_key).any? + end end