Sha256: 4cbfc68dbfaf97736fb5d9ab04d6051b1330e58e2691a5b7d4aab15924de87b4
Contents?: true
Size: 413 Bytes
Versions: 1
Compression:
Stored size: 413 Bytes
Contents
module ShoppingCart class ViewsGenerator < Rails::Generators::Base source_root File.expand_path("../../../../app/views", __FILE__) desc 'copy engine views to app' def copy_views directory 'shopping_cart', 'app/views/shopping_cart' end desc 'copy engine layout to app' def copy_layout directory 'layouts/shopping_cart', 'app/views/layouts/shopping_cart' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shopping_cart-0.1.0 | lib/generators/shopping_cart/views_generator.rb |