Commit cfe406bf by Jeremy Walker

Fixed bug in including paperclip storage modules with underscores.

parent f5851f1d
...@@ -323,7 +323,7 @@ module Paperclip ...@@ -323,7 +323,7 @@ module Paperclip
end end
def initialize_storage #:nodoc: def initialize_storage #:nodoc:
storage_class_name = @storage.to_s.capitalize storage_class_name = @storage.to_s.camelize
begin begin
@storage_module = Paperclip::Storage.const_get(storage_class_name) @storage_module = Paperclip::Storage.const_get(storage_class_name)
rescue NameError rescue NameError
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment