Sha256: c17a5e2d78c8738c072b4a8ef0e5a5c18667a70e4b736470122e59baef5a6425
Contents?: true
Size: 343 Bytes
Versions: 2
Compression:
Stored size: 343 Bytes
Contents
module IrwiMod::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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
irwi_mod-0.0.2 | lib/irwi_mod/support/template_finder.rb |
irwi_mod-0.0.1 | lib/irwi_mod/support/template_finder.rb |