class Reporta::Generators::ViewsGenerator

Public Instance Methods

copy_views() click to toggle source
# File lib/generators/reporta/views_generator.rb, line 9
def copy_views
  view_directory :reports
end
target_path() click to toggle source
# File lib/generators/reporta/views_generator.rb, line 19
def target_path
  @target_path ||= "app/views/reporta"
end
view_directory(name, _target_path = nil) click to toggle source
# File lib/generators/reporta/views_generator.rb, line 13
def view_directory(name, _target_path = nil)
  directory name.to_s, _target_path || "#{target_path}/#{name}" do |content|
    content
  end
end