Sha256: e170cb6ced052f00cf13e38d328917a1267f263b83d10f2e7852abab02c1b3a6

Contents?: true

Size: 553 Bytes

Versions: 1

Compression:

Stored size: 553 Bytes

Contents

require "haml"

module YawlRails
  class Engine < ::Rails::Engine
    isolate_namespace YawlRails

    config.generators do |g|
      g.test_framework :rspec, :fixture => false
      g.template_engine :haml
    end

    config.active_record.schema_format = :sql

    initializer "yawl_rails.append_migrations" do |app|
      unless app.root.to_s.match root.to_s
        app.config.paths["db/migrate"] += config.paths["db/migrate"].expanded
      end
    end

    initializer "yawl_rails.setup_yawl" do |app|
      require "yawl/rails"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yawl_rails-0.1.0 lib/yawl_rails/engine.rb