dont patch over existing string method

This commit is contained in:
Torsten Ruger 2018-04-16 21:24:27 +03:00
parent d19bd5f98d
commit 7c33f19bee
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
class String
def camelize
def camelise
self.split("_").collect{|str| str.capitalize_first }.join
end
def capitalize_first

View File

@ -180,7 +180,7 @@ module Risc
when Parfait::Object
type = Parfait.object_space.get_class_by_name( object.class.name.split("::").last.to_sym).instance_type
when Symbol
object = object.to_s.camelize.to_sym
object = object.to_s.camelise.to_sym
clazz = Parfait.object_space.get_class_by_name(object)
raise "Not implemented/found object #{object}:#{object.class}" unless clazz
type = clazz.instance_type