Method: Primer::Forms::ActsAsComponent#base_template_path

Defined in:
app/lib/primer/forms/acts_as_component.rb

#base_template_pathObject

[View source]

79
80
81
82
83
84
85
86
87
88
# File 'app/lib/primer/forms/acts_as_component.rb', line 79

def base_template_path
  return @base_template_path if defined?(@base_template_path)
  base_path = Utils.const_source_location(self.name)

  if base_path
    @base_template_path = File.dirname(base_path)
  else
    warn "Could not identify the template for #{self}"
  end
end