lib/ronin/cached_file.rb in ronin-1.0.0.rc2 vs lib/ronin/cached_file.rb in ronin-1.0.0.rc3
- old
+ new
@@ -61,11 +61,11 @@
# @return [String]
# The possible path inferred from the class name.
#
def model_path
if self.model_name
- return self.model_name.underscore
+ Support::Inflector.underscore(self.model_name)
end
end
#
# The Model of the cached object.
@@ -85,10 +85,10 @@
rescue ::LoadError
end
# filter out missing class names
model = begin
- ::Object.full_const_get(self.model_name)
+ DataMapper::Ext::Object.full_const_get(self.model_name)
rescue NameError
return nil
end
# filter out non-Cacheable models