Sha256: b76275b9f5e3e706efca13ed08273b4ce3fd4024667b121adf8418c54892cd8c
Contents?: true
Size: 217 Bytes
Versions: 3
Compression:
Stored size: 217 Bytes
Contents
module Routingo class Routingo < Rails::Generators::NamedBase def create_helper_file create_file "config/routes/#{file_name}.rb", <<-FILE Rails.application.routes.draw do end FILE end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
routingo-0.1.2 | lib/generators/routingo/routingo_generator.rb |
routingo-0.1.1 | lib/generators/routingo/routingo_generator.rb |
routingo-0.1.0 | lib/generators/routingo/routingo_generator.rb |