Class: LowVoltage::PostFinder

Inherits:
HighVoltage::PageFinder
  • Object
show all
Defined in:
lib/low_voltage/post_finder.rb

Instance Method Summary collapse

Instance Method Details

#content_pathObject



8
9
10
# File 'lib/low_voltage/post_finder.rb', line 8

def content_path
  LowVoltage.configuration.content_path
end

#findObject



4
5
6
# File 'lib/low_voltage/post_finder.rb', line 4

def find
  Rails.root.join("app/views/#{content_path}/#{clean_path}.md")
end