Class: Godmin::EngineResolver

Inherits:
Resolver
  • Object
show all
Defined in:
lib/godmin/resolver.rb

Instance Attribute Summary

Attributes inherited from Resolver

#controller_name, #namespace

Instance Method Summary collapse

Methods inherited from Resolver

#find_templates

Constructor Details

#initialize(controller_name) ⇒ EngineResolver

Returns a new instance of EngineResolver.



37
38
39
40
41
# File 'lib/godmin/resolver.rb', line 37

def initialize(controller_name)
  super [Godmin.namespace, "app/views"].compact.join("/")
  self.namespace = Godmin.namespace
  self.controller_name = controller_name
end

Instance Method Details

#template_paths(prefix, _partial) ⇒ Object



43
44
45
46
# File 'lib/godmin/resolver.rb', line 43

def template_paths(prefix, _partial)
  return [] if prefix =~ /^godmin\//
  super
end