Sha256: 3de8c85d6000c8ee966a28e3b348c6bac4363be4ec1b345d485b995484c6fb37

Contents?: true

Size: 584 Bytes

Versions: 19

Compression:

Stored size: 584 Bytes

Contents

require 'rails/generators'
require 'generators/comfy/cms/cms_generator'

class Cms::ComfyGenerator < Comfy::Generators::CmsGenerator
  spec = Gem::Specification.find_by_name("comfortable_mexican_sofa")
  source_root spec.gem_dir # File.expand_path('../../../../..', __FILE__)

  def generate_routing
    route_string  = "  comfy_route :cms_admin, :path => '/cms-admin'\n\n"
    route_string << "  # Make sure this routeset is defined last\n"
    route_string << "  comfy_route :cms, :path => '/', :sitemap => false\n"
    route route_string[2..-1]
  end

  def show_readme

  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
cms-fortress-1.3.15 lib/generators/cms/comfy/comfy_generator.rb
cms-fortress-1.3.14 lib/generators/cms/comfy/comfy_generator.rb
cms-fortress-1.3.13 lib/generators/cms/comfy/comfy_generator.rb
cms-fortress-1.3.12 lib/generators/cms/comfy/comfy_generator.rb
cms-fortress-1.3.11 lib/generators/cms/comfy/comfy_generator.rb
cms-fortress-1.3.10 lib/generators/cms/comfy/comfy_generator.rb
cms-fortress-1.3.9 lib/generators/cms/comfy/comfy_generator.rb
cms-fortress-1.3.8 lib/generators/cms/comfy/comfy_generator.rb
cms-fortress-1.3.7 lib/generators/cms/comfy/comfy_generator.rb
cms-fortress-1.3.6 lib/generators/cms/comfy/comfy_generator.rb
cms-fortress-1.3.5 lib/generators/cms/comfy/comfy_generator.rb
cms-fortress-1.3.4 lib/generators/cms/comfy/comfy_generator.rb
cms-fortress-1.3.3 lib/generators/cms/comfy/comfy_generator.rb
cms-fortress-1.3.2 lib/generators/cms/comfy/comfy_generator.rb
cms-fortress-1.3.1 lib/generators/cms/comfy/comfy_generator.rb
cms-fortress-1.3.0 lib/generators/cms/comfy/comfy_generator.rb
cms-fortress-1.3.0.rc3 lib/generators/cms/comfy/comfy_generator.rb
cms-fortress-1.3.0.rc2 lib/generators/cms/comfy/comfy_generator.rb
cms-fortress-1.3.0.rc1 lib/generators/cms/comfy/comfy_generator.rb