diff --git a/lib/params_deserializers/params_deserializer.rb b/lib/params_deserializers/params_deserializer.rb index 4f9942d..9f8785e 100644 --- a/lib/params_deserializers/params_deserializer.rb +++ b/lib/params_deserializers/params_deserializer.rb @@ -116,8 +116,10 @@ def attribute(attr, options = {}) end end - def ignore(attr) - attrs << Attribute.new(attr, ignored: true) + def ignore(*param_names) + param_names.each do |param_name| + attrs << Attribute.new(param_name, ignored: true) + end end def attributes(*args) diff --git a/lib/params_deserializers/version.rb b/lib/params_deserializers/version.rb index 541d1e2..7ec0ecc 100644 --- a/lib/params_deserializers/version.rb +++ b/lib/params_deserializers/version.rb @@ -28,5 +28,5 @@ # POSSIBILITY OF SUCH DAMAGE. module ParamsDeserializers - VERSION = "1.1.0" + VERSION = "1.1.1" end