Sha256: 64e30a91325bcb4a46fec47521ebeb0b74b30b2aba69b7145fce88c21bba67a9

Contents?: true

Size: 496 Bytes

Versions: 1

Compression:

Stored size: 496 Bytes

Contents

require "generators/kiso_themes/page_generator"

module KisoThemes
  module Generators
    class LandingPagesGenerator < PageGenerator
      view_name "frontend_pages/landing_pages", "landing_page"

      namespace "kiso_themes:landing_pages"

      def set_layout
        controller_const_name = "#{name.camelize}Controller"
        inject_into_class File.join('app/controllers', class_path, "#{file_name}_controller.rb"), controller_const_name, "  layout '_base'\n"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kiso_themes-1.0.2 lib/generators/kiso_themes/landing_pages_generator.rb