lib/conifer.rb in conifer-1.2.0 vs lib/conifer.rb in conifer-1.2.1

- old
+ new

@@ -16,11 +16,11 @@ body = proc do return instance_variable_get("@conifer_#{method}") if instance_variable_defined?("@conifer_#{method}") instance_variable_set "@conifer_#{method}", - Conifer::File.new(name, prefix: prefix, dir: dir, allowed_classes: allowed_classes) - .tap(&:validate!) + Conifer::File.new(name, prefix: prefix, format: format, + dir: dir, allowed_classes: allowed_classes).tap(&:validate!) end singleton ? define_singleton_method(method, &body) : define_method(method, &body) end # rubocop:enable Metrics/ParameterLists