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

Version Path
dynamic_sitemaps-1.0.8 lib/generators/dynamic_sitemaps/dynamic_sitemaps_generator.rb
dynamic_sitemaps-1.0.7 lib/generators/dynamic_sitemaps/dynamic_sitemaps_generator.rb
dynamic_sitemaps-1.0.6 lib/generators/dynamic_sitemaps/dynamic_sitemaps_generator.rb
dynamic_sitemaps-1.0.5 lib/generators/dynamic_sitemaps/dynamic_sitemaps_generator.rb
dynamic_sitemaps-1.0.4 lib/generators/dynamic_sitemaps/dynamic_sitemaps_generator.rb
dynamic_sitemaps-1.0.3 lib/generators/dynamic_sitemaps/dynamic_sitemaps_generator.rb
dynamic_sitemaps-1.0.2 lib/generators/dynamic_sitemaps/dynamic_sitemaps_generator.rb
dynamic_sitemaps-1.0.1 lib/generators/dynamic_sitemaps/dynamic_sitemaps_generator.rb