module ContentfulRedis::ClassFinder
Public Class Methods
search(type)
click to toggle source
# File lib/contentful_redis/class_finder.rb, line 5 def self.search(type) begin "#{ContentfulRedis.configuration.model_scope}#{type.classify}".constantize rescue NameError => _e raise ContentfulRedis::Error::ClassNotFound, "Content type: #{type} is undefined" end end