Sha256: 92c48a6de80c9ebc69598d62946542d6ebb554538d747a8a1f3fc03f55da8388
Contents?: true
Size: 567 Bytes
Versions: 14
Compression:
Stored size: 567 Bytes
Contents
module Ecm module News module Generators class InstallGenerator < Rails::Generators::Base desc 'Generates the intializer' source_root File.expand_path('../templates', __FILE__) def generate_initializer copy_file 'initializer.rb', 'config/initializers/ecm_news.rb' end def generate_routes inject_into_file 'config/routes.rb', before: "\nend" do File.read(File.join(File.expand_path('../templates', __FILE__), 'routes.source')) end end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems