Sha256: 5315b84a3434af444f2f6eb9db7bd3b83036a260314c3b7900c3a8ed929e435a
Contents?: true
Size: 307 Bytes
Versions: 8
Compression:
Stored size: 307 Bytes
Contents
class DynamicSitemapsGenerator < Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) def create_initializer copy_file "initializer.rb", "config/initializers/#{file_name}.rb" end def create_route route "match 'sitemap.xml' => 'sitemaps#sitemap'" end end
Version data entries
8 entries across 8 versions & 1 rubygems