Sha256: 0539c69c929be1e354346bb4ebc59341a7f3ed64fa4833c6360e9a99df663121
Contents?: true
Size: 372 Bytes
Versions: 10
Compression:
Stored size: 372 Bytes
Contents
module Cloudfuji module Generators class RoutesGenerator < Rails::Generators::Base def create_routes_file prepend_to_file("config/routes.rb") do <<-EOF begin Rails.application.routes.draw do cloudfuji_routes end rescue => e puts "Error loading the Cloudfuji routes:" puts "\#{e.inspect}" end EOF end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems