class SimpleCart::InstallGenerator
Public Instance Methods
copy_migration()
click to toggle source
# File lib/generators/simple_cart/install_generator.rb, line 11 def copy_migration rake 'simple_cart:install:migrations' end
init_routes()
click to toggle source
# File lib/generators/simple_cart/install_generator.rb, line 15 def init_routes route 'mount SimpleCart::Engine, at: "/shop"' end
test()
click to toggle source
# File lib/generators/simple_cart/install_generator.rb, line 7 def test puts 'hi' end