Sha256: b80810206958c7d3467812bdb50bf2d116319a1a1f7efbca8ce07f98a61757f6
Contents?: true
Size: 571 Bytes
Versions: 8
Compression:
Stored size: 571 Bytes
Contents
module Ecm module Videos 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_videos.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
8 entries across 8 versions & 1 rubygems