Sha256: d7516d1f81142d7bcddc43c3bbe387c09521c55e68727a95cd06982786ce8a02
Contents?: true
Size: 708 Bytes
Versions: 25
Compression:
Stored size: 708 Bytes
Contents
module Fuel module Generators class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../../templates', __FILE__) desc "Creates a Fuel initializer in config/initializers, adds/migrates Fuel migration files and migrates the files, and adds the appropriate route to config/routes" # rake fuel:install def install run 'bundle install' route "mount Fuel::Engine => '/blog'" rake 'fuel:install:migrations' rake 'db:migrate' end # to generate migration updates: # rake fuel:install:migrations def copy_initializer template "fuel.rb", "config/initializers/fuel.rb" end end end end
Version data entries
25 entries across 25 versions & 1 rubygems