app/models/site.rb
#need non protected method for ErbTemplate - psq
need non protected method for ErbTemplate - psq
need non protected method for ErbTemplate - psq
def find_preferred_template(template_type, custom_template)
    preferred = templates.find_preferred(template_type, custom_template)
    return preferred if preferred && preferred.file?
    raise MissingTemplateError.new(template_type, templates.collect_templates(template_type, custom_template).collect(&:basename))
  end
def find_preferred_template ( template_type , custom_template ) preferred = templates . find_preferred ( template_type , custom_template ) return preferred if preferred && preferred . file? raise MissingTemplateError . new ( template_type , templates . collect_templates ( template_type , custom_template ) . collect ( & :basename ) ) end
need non protected method for ErbTemplate - psq
need non protected method for ErbTemplate - psq
template_type
<not_specific>
custom_template
<not_specific>