Sha256: 1c81949a9eb6b9168e7213a3e1bc95a2c8e77f2fccd98a037a07ca295975a916
Contents?: true
Size: 366 Bytes
Versions: 1
Compression:
Stored size: 366 Bytes
Contents
module Bushido 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 bushido_routes end rescue => e puts "Error loading the Bushido routes:" puts "\#{e.inspect}" end EOF end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bushido-0.0.36 | lib/generators/bushido/routes_generator.rb |