lib/ecm/cms/database_template.rb in ecm_cms-1.0.4.pre vs lib/ecm/cms/database_template.rb in ecm_cms-1.0.5.pre
- old
+ new
@@ -52,10 +52,11 @@
self.pathname = '/' and return if self.pathname.blank?
self.pathname << '/' unless self.pathname.end_with?('/')
end
def clear_resolver_cache
- Ecm::Cms::PageResolver.instance.clear_cache
+ klass = "#{self.class.name}Resolver"
+ klass.constantize.instance.clear_cache
end
def set_defaults
if self.new_record?
self.locale ||= I18n.default_locale.to_s