Sha256: 6692bb648367f499731741aac96d4eee4d833863363c91fc78ad2b06715471ea

Contents?: true

Size: 388 Bytes

Versions: 1

Compression:

Stored size: 388 Bytes

Contents

require 'rails/generators'

module SimpleCart
  class ViewsGenerator < Rails::Generators::Base
    source_root File.expand_path("../../../../app/views/simple_cart", __FILE__)    
    def copy_views
      directory 'carts', 'app/views/simple_cart/carts'
      directory 'checkout', 'app/views/simple_cart/checkout'
      directory 'orders', 'app/views/simple_cart/orders'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simple_cart-0.0.5 lib/generators/simple_cart/views_generator.rb