lib/paperclip/storage/database.rb in paperclip_database-0.2.0 vs lib/paperclip/storage/database.rb in paperclip_database-0.3.0

- old
+ new

@@ -102,13 +102,13 @@ end private :setup_paperclip_files_model def override_default_options(base) - if @url == base.class.default_options[:url] - @url = ":relative_root/:class/:attachment/:id?style=:style" + if @options[:url] == base.class.default_options[:url] + @options[:url] = ":relative_root/:class/:attachment/:id?style=:style" end - @path = ":database_path" + @options[:path] = ":database_path" end private :override_default_options def database_table @database_table