Sha256: 7f04012040beded133ce925fa49e1d9167d51e7d5561b3b5a04e6098451b9ce8

Contents?: true

Size: 293 Bytes

Versions: 3

Compression:

Stored size: 293 Bytes

Contents

module Sitepress
  class InstallGenerator < Rails::Generators::Base
    source_root File.expand_path("templates", __dir__)

    def copy_files
      directory ".", "app/content"
    end

    def add_sitepress_routes
      route "sitepress_root"
      route "sitepress_pages"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sitepress-rails-3.1.2 rails/lib/generators/sitepress/install/install_generator.rb
sitepress-rails-3.1.1 rails/lib/generators/sitepress/install/install_generator.rb
sitepress-rails-3.0.1 rails/lib/generators/sitepress/install/install_generator.rb