class SmartListing::Generators::ViewsGenerator

Public Instance Methods

copy_views() click to toggle source
# File lib/generators/smart_listing/views_generator.rb, line 15
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/smart_listing/#{f}"
  end
end