lib/roachclip.rb in roachclip-0.2.1 vs lib/roachclip.rb in roachclip-0.2.2
- old
+ new
@@ -21,10 +21,10 @@
model.class_inheritable_accessor :roaches
model.roaches = Set.new
end
module ClassMethods
- def roachclip name, options
+ def roachclip name, options = {}
self.attachment name
raise InvalidAttachment unless attachment_names.include?(name)
path = options.delete(:path) || "/gridfs/fs/%s-%s"