Sha256: b27d0cda13cacd95479dcb37f59740a4c6e6ba488aa0674de31a64a9158282ee

Contents?: true

Size: 309 Bytes

Versions: 10

Compression:

Stored size: 309 Bytes

Contents

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

  def setup
    rake("enju_question_engine:install:migrations")
    inject_into_file 'app/models/user.rb',
      "  enju_question_user_model\n", :after => "enju_leaf_user_model\n"
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
enju_question-0.1.1 lib/generators/enju_question/setup/setup_generator.rb
enju_question-0.1.0 lib/generators/enju_question/setup/setup_generator.rb
enju_question-0.1.0.pre15 lib/generators/enju_question/setup/setup_generator.rb
enju_question-0.1.0.pre14 lib/generators/enju_question/setup/setup_generator.rb
enju_question-0.1.0.pre13 lib/generators/enju_question/setup/setup_generator.rb
enju_question-0.1.0.pre12 lib/generators/enju_question/setup/setup_generator.rb
enju_question-0.1.0.pre11 lib/generators/enju_question/setup/setup_generator.rb
enju_question-0.1.0.pre10 lib/generators/enju_question/setup/setup_generator.rb
enju_question-0.1.0.pre9 lib/generators/enju_question/setup/setup_generator.rb
enju_question-0.1.0.pre8 lib/generators/enju_question/setup/setup_generator.rb