Sha256: 3cb5eea26d67dff7b81d52f562f02b1b7f16e1782321e4057df43272f378788c

Contents?: true

Size: 605 Bytes

Versions: 1

Compression:

Stored size: 605 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"
        migration_template "add_spree_namespace.rb", "db/migrate/add_spree_namespace.rb"
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_essential_cms-0.3.0.rc1 lib/generators/spree_essentials/cms_generator.rb