Permalink
Browse files

Use camelize instead of capitalize to support "imap_sync" style types.

  • Loading branch information...
1 parent 08608ff commit 4c57e1085c5189c21043ed2c12f30e4a5901d3d4 @huerlisi committed Aug 30, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/fetcher.rb
View
@@ -13,7 +13,7 @@ module Fetcher
def self.create(options={})
klass = options.delete(:type)
raise ArgumentError, 'Must supply a type' unless klass
- module_eval "#{klass.to_s.capitalize}.new(options)"
+ module_eval "#{klass.to_s.camelize}.new(options)"
end
end

0 comments on commit 4c57e10

Please sign in to comment.