class SimplePaginate::Generators::ViewsGenerator
Public Instance Methods
copy_views()
click to toggle source
# File lib/generators/simple_paginate/views_generator.rb, line 17 def copy_views filename_pattern = File.join self.class.source_root, "*.html.#{template_engine}" Dir.glob(filename_pattern).map {|f| File.basename f}.each do |f| copy_file f, "app/views/simple_paginate/#{f}" end end
Private Instance Methods
template_engine()
click to toggle source
# File lib/generators/simple_paginate/views_generator.rb, line 26 def template_engine options[:template_engine].try(:to_s).try(:downcase) || 'erb' end