lib/attachs/storages/base.rb in attachs-0.4.1 vs lib/attachs/storages/base.rb in attachs-0.4.2
- old
+ new
@@ -57,8 +57,18 @@
attachment.attribute.to_s.parameterize
end.to_s
end
end
+ def find_option(options, name, default)
+ if options.has_key?(name)
+ options[name]
+ elsif attachment.options.has_key?(name)
+ attachment.options[name]
+ else
+ default
+ end
+ end
+
end
end
end