Permalink
Browse files

Use #camelize instead of #constantize.

  • Loading branch information...
1 parent 0e51d1d commit ee2a015514ff87dfd2158926457e988c2fc3fd79 @steveklabnik steveklabnik committed Dec 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/draper/decorator.rb
View
@@ -41,7 +41,7 @@ class << self
#
# @param [String, Symbol, Class] Class or name of class to decorate.
def self.decorates(klass)
- @source_class = klass.to_s.classify.constantize
+ @source_class = klass.to_s.camelize.constantize
end
# @return [Class] The source class corresponding to this

0 comments on commit ee2a015

Please sign in to comment.