Class: Ecm::CmsCore::Generators::RoutesGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Ecm::CmsCore::Generators::RoutesGenerator
- Defined in:
- lib/generators/ecm/cms_core/routes/routes_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate_routes ⇒ Object
9 10 11 12 13 |
# File 'lib/generators/ecm/cms_core/routes/routes_generator.rb', line 9 def generate_routes inject_into_file "config/routes.rb" , :before => "\nend" do File.read(File.join(File.dirname(__FILE__), 'templates', 'routes.rb')) end end |