Sha256: 5f75ef1a9147cd61b72ac3efc2540c07a6dc5bc9ad3a8a95a134ae63fa27e192

Contents?: true

Size: 515 Bytes

Versions: 2

Compression:

Stored size: 515 Bytes

Contents

require 'generators/essentials_base'

module SpreeEssentials
  module Generators
    class CmsGenerator < SpreeEssentials::Generators::EssentialsBase
      
      desc "Installs required migrations for spree_essentials"
      source_root File.expand_path("../../templates/db/migrate", __FILE__)
      
      def copy_migrations
        migration_template "create_pages.rb",    "db/migrate/create_pages.rb"
        migration_template "create_contents.rb", "db/migrate/create_contents.rb"
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_essential_cms-0.1.2 lib/generators/spree_essentials/cms_generator.rb
spree_essential_cms-0.1.0 lib/generators/spree_essentials/cms_generator.rb