Sha256: 512a2d9c39943c84ab98f5cd39840e08c99cee1591c4313563646a1e76b6d091
Contents?: true
Size: 464 Bytes
Versions: 6
Compression:
Stored size: 464 Bytes
Contents
module Ecm module CmsCore module Generators class RoutesGenerator < Rails::Generators::Base desc "Generates the routes" source_root File.expand_path('../templates', __FILE__) def generate_routes inject_into_file "config/routes.rb" , :before => "\nend" do File.read(File.join(File.dirname(__FILE__), 'templates', 'routes.rb')) end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems