Sha256: aff75b1fceb313d08d618d2d2bdf6a340b0c1e2234c3735ad2972cede28180a5
Contents?: true
Size: 570 Bytes
Versions: 2
Compression:
Stored size: 570 Bytes
Contents
module Ecm module Staff module Generators class InstallGenerator < Rails::Generators::Base desc 'Generates the initializer' source_root File.expand_path('../templates', __FILE__) def generate_initializer copy_file 'initializer.rb', 'config/initializers/ecm_staff.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ecm_staff2-3.1.1 | lib/generators/ecm/staff/install/install_generator.rb |
ecm_staff2-3.1.0 | lib/generators/ecm/staff/install/install_generator.rb |