Sha256: 3fb251b0b126929f4d4c1d6a833c1a0823387a984069076ca1ea41e93e6b4555

Contents?: true

Size: 643 Bytes

Versions: 12

Compression:

Stored size: 643 Bytes

Contents

class EnjuEvent::SetupGenerator < Rails::Generators::Base
  source_root File.expand_path('../templates', __FILE__)

  def copy_setup_files
    directory("db/fixtures", "db/fixtures/enju_event")
    rake("enju_event_engine:install:migrations")
    inject_into_file 'app/controllers/application_controller.rb',
      "  enju_event\n", :after => "enju_library\n"
    inject_into_file 'app/assets/stylesheets/application.css',
      " *= require event_calendar\n", :after => " *= require enju_leaf\n"
    inject_into_file 'app/assets/javascripts/application.js',
      "//= require event_calendar\n", :after => "//= require enju_leaf\n"
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
enju_event-0.1.17.pre22 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.1.17.pre21 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.1.17.pre20 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.1.17.pre19 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.1.17.pre18 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.1.17.pre17 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.1.17.pre16 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.1.17.pre15 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.1.17.pre14 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.1.17.pre13 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.1.17.pre12 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.1.17.pre11 lib/generators/enju_event/setup/setup_generator.rb