Sha256: ba88af2090d2f1710e376b36f0aa1ba7b1a7d7963029a73b724b2eb3bc67d6ff

Contents?: true

Size: 659 Bytes

Versions: 16

Compression:

Stored size: 659 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 enju_event/application\n", :after => " *= require enju_leaf\n"
    inject_into_file 'app/assets/javascripts/application.js',
      "//= require enju_event/application\n", :after => "//= require enju_leaf\n"
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
enju_event-0.2.3 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.2.2 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.2.1 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.2.0 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.2.0.beta.4 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.2.0.beta.3 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.2.0.beta.2 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.2.0.beta.1 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.1.19 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.1.18 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.1.17 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.1.17.pre27 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.1.17.pre26 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.1.17.pre25 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.1.17.pre24 lib/generators/enju_event/setup/setup_generator.rb
enju_event-0.1.17.pre23 lib/generators/enju_event/setup/setup_generator.rb