class GithubRevisions::Generators::ViewsGenerator

Public Instance Methods

copy_views() click to toggle source
# File lib/generators/github_revisions/views_generator.rb, line 6
def copy_views
  filename_pattern = File.join self.class.source_root, "*.html.erb"
  Dir.glob(filename_pattern).map {|f| File.basename f}.each do |f|
    copy_file f, "app/views/revisions/#{f}"
  end
end