module ReleaseNotes::Generators::ViewPathTemplates

Protected Instance Methods

target_path() click to toggle source
# File lib/generators/release_notes/views_generator.rb, line 28
def target_path
  @target_path ||= "app/views/#{scope || :release_notes}"
end
view_directory(name, _target_path=nil) click to toggle source
# File lib/generators/release_notes/views_generator.rb, line 22
def view_directory(name, _target_path=nil)
  directory name.to_s, _target_path || "#{target_path}/#{name}" do |content|
    content
  end
end