Class: Godmin::EngineResolver
- Defined in:
- lib/godmin/resolver.rb
Instance Attribute Summary
Attributes inherited from Resolver
Instance Method Summary collapse
-
#initialize(controller_name) ⇒ EngineResolver
constructor
A new instance of EngineResolver.
- #template_paths(prefix, _partial) ⇒ Object
Methods inherited from Resolver
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 |