class EnjuSubject::SetupGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) def copy_setup_files directory("db/fixtures", "db/fixtures/enju_subject") rake("enju_subject_engine:install:migrations") inject_into_file 'app/controllers/application_controller.rb', " enju_subject\n", :after => "enju_library\n" end end