lib/bindata/primitive.rb in bindata-1.3.1 vs lib/bindata/primitive.rb in bindata-1.4.0

- old
+ new

@@ -60,15 +60,15 @@ # Primitive objects accept all the parameters that BinData::BasePrimitive do. # class Primitive < BasePrimitive include DSLMixin - register_subclasses - dsl_parser :multiple_fields, :optional_fieldnames, :sanitize_fields + unregister_self + dsl_parser :primitive class << self - def sanitize_parameters!(params, sanitizer) #:nodoc: - params[:struct_params] = sanitizer.create_sanitized_params(to_struct_params, BinData::Struct) + def sanitize_parameters!(params) #:nodoc: + params[:struct_params] = params.create_sanitized_params(dsl_params, BinData::Struct) end end mandatory_parameter :struct_params