Sha256: 520f72f77b68315bdfd76deff97906f3a767f8494164354bf81ad77e62e41fcd

Contents?: true

Size: 425 Bytes

Versions: 3

Compression:

Stored size: 425 Bytes

Contents

module Refinery
  class PageOptionsGenerator < Rails::Generators::Base

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

    def rake_db
      rake("refinery_page_options:install:migrations")
    end

    def generate_page_options_initializer
      template "config/initializers/refinery/page_options.rb.erb", File.join(destination_root, "config", "initializers", "refinery", "page_options.rb")
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
refinerycms-page-options-2.1.2 lib/generators/refinery/page_options_generator.rb
refinerycms-page-options-2.1.1 lib/generators/refinery/page_options_generator.rb
refinerycms-page-options-2.1.0 lib/generators/refinery/page_options_generator.rb