lib/generators/ecm/courses/install/install_generator.rb in ecm_courses2-1.0.3 vs lib/generators/ecm/courses/install/install_generator.rb in ecm_courses2-1.1.0
- old
+ new
@@ -4,11 +4,11 @@
class InstallGenerator < Rails::Generators::Base
desc "Generates the initializer"
source_root File.expand_path('../templates', __FILE__)
- def generate_intializer
- copy_file "ecm_courses.rb", "config/initializers/ecm_courses.rb"
+ def generate_initializer
+ copy_file "initializer.rb", "config/initializers/ecm_courses.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'))