Sha256: 7301a5f157455d6a1d25a0ce83e2884d35dd78c5050b090184db62f1e06d2a29
Contents?: true
Size: 361 Bytes
Versions: 1
Compression:
Stored size: 361 Bytes
Contents
require 'rails/generators' module SimpleCart class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) def test puts 'hi' end def copy_migration rake 'simple_cart:install:migrations' end def init_routes route 'mount SimpleCart::Engine, at: "/shop"' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_cart-0.0.5 | lib/generators/simple_cart/install_generator.rb |