Permalink
Browse files

Forgot to rename helper method here.

  • Loading branch information...
1 parent c40c91a commit d39198d3b9aa7a5c9aef97d0edcd0efabd143329 @louismullie committed Oct 21, 2012
@@ -118,7 +118,7 @@ def find_worker_for_language(language, group)
# Return an error message and suggest possible typos.
def worker_not_found(klass, group)
- "Algorithm '#{cl(klass).ucc}' couldn't be "+
+ "Algorithm '#{klass.mn.ucc}' couldn't be "+
"found in group #{group}." + Treat::Helpers::Help.
did_you_mean?(group.list.map { |c| c.ucc }, klass.ucc)
end
@@ -29,8 +29,8 @@ def self.serialize(entity, options = {})
new(Treat.databases.mongo.host).
db(options[:db])
- supertype = cl(Treat::Entities.const_get(
- entity.type.to_s.capitalize.intern).superclass).downcase
+ supertype = Treat::Entities.const_get(
+ entity.type.to_s.capitalize.intern).superclass.mn.downcase
supertype = entity.type.to_s if supertype == 'entity'
supertypes = supertype + 's'
@@ -19,8 +19,8 @@ def self.unserialize(entity, options={})
new(Treat.databases.mongo.host).
db(Treat.databases.mongo.db || db)
- supertype = cl(Treat::Entities.const_get(
- entity.type.to_s.capitalize.intern).superclass).downcase
+ supertype = Treat::Entities.const_get(
+ entity.type.to_s.capitalize.intern).superclass.mn.downcase
supertype = entity.type.to_s if supertype == 'entity'
supertypes = supertype + 's'
supertypes = 'documents' if entity.type == :collection

0 comments on commit d39198d

Please sign in to comment.