Sha256: 26c6fc866d867ef59e7fec2004fd9e3e96132d46dbb283877019e6dcfd4f3be5

Contents?: true

Size: 364 Bytes

Versions: 1

Compression:

Stored size: 364 Bytes

Contents

module NoCms
  class MenusGenerator < Rails::Generators::Base

    source_root File.expand_path("../templates/", __FILE__)

    def generate_nocms_menus_initializer
      template "config/initializers/nocms/menus.rb", File.join(destination_root, "config", "initializers", "nocms", "menus.rb")
    end

    def self.namespace
      "nocms:menus"
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nocms-menus-1.0.0 lib/generators/nocms/menus_generator.rb