Sha256: f8872596194277421d3da87e07786fb665f865367a26ee50d64e32cd52d8b912
Contents?: true
Size: 543 Bytes
Versions: 3
Compression:
Stored size: 543 Bytes
Contents
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', " include EnjuSubject::Controller\n", after: "EnjuLibrary::Controller\n" append_to_file("config/initializers/enju_leaf.rb") do <<"EOS" Manifestation.include(EnjuSubject::EnjuManifestation) EOS end end end
Version data entries
3 entries across 3 versions & 1 rubygems