Sha256: ba7c3a7780a5889376751de1e9f0dfbb48f002382e3dde831e3a83c41036edae
Contents?: true
Size: 345 Bytes
Versions: 17
Compression:
Stored size: 345 Bytes
Contents
module Irwi::Support::TemplateFinder protected def template_dir(template) dir = respond_to?( :controller_path ) ? controller_path : controller.controller_path dir = 'base_wiki_pages' if Dir.glob( "app/views/#{dir}/#{template}.html.*" ).empty? # Select default if there are no template in resource directory dir end end
Version data entries
17 entries across 17 versions & 1 rubygems