Sha256: a4c90ee5cbacdd1fb9d2143709890fddc3fb46634c528d4a7800d41c6f74e584
Contents?: true
Size: 445 Bytes
Versions: 8
Compression:
Stored size: 445 Bytes
Contents
class EnjuLibrary::SetupGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) argument :file, :type => :string, :default => "all" def copy_setup_files directory("db/fixtures", "db/fixtures/enju_library") return if file == 'fixture' inject_into_file 'app/controllers/application_controller.rb', " include EnjuLibrary::Controller\n", after: "include EnjuLeaf::Controller\n" end end
Version data entries
8 entries across 8 versions & 1 rubygems