Sha256: 36d3e6e6d413cff639dcaba6a791be3b586ed0c68edab5cc57a144e947acbea5
Contents?: true
Size: 601 Bytes
Versions: 4
Compression:
Stored size: 601 Bytes
Contents
module Blogelator class InstallGenerator < Rails::Generators::Base source_root File.expand_path("../../../..", __FILE__) def copy_controller posts_controller_path = "app/controllers/blogelator/posts_controller.rb" copy_file posts_controller_path, posts_controller_path end def copy_views blogelator_views_path = "app/views/blogelator" directory blogelator_views_path, blogelator_views_path end # Install the database migrations required for Blogelator's posts def install_migrations rake "blogelator:install:migrations" end end end
Version data entries
4 entries across 4 versions & 1 rubygems