Sha256: a27d33a11d09b75f69b8d52ef240f39c7296d0d82bdf238e99482f471982bb05
Contents?: true
Size: 409 Bytes
Versions: 2
Compression:
Stored size: 409 Bytes
Contents
class EnjuInventory::SetupGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) def copy_setup_files inject_into_file 'app/controllers/application_controller.rb', " include EnjuInventory::Controller\n", after: "EnjuLibrary::Controller\n" append_to_file("app/models/user.rb") do <<"EOS" Item.include(EnjuInventory::EnjuItem) EOS end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
enju_inventory-0.3.1 | lib/generators/enju_inventory/setup/setup_generator.rb |
enju_inventory-0.4.0.rc.1 | lib/generators/enju_inventory/setup/setup_generator.rb |