shageman/the_next_big_thing

View on GitHub
components/event_counter/lib/event_counter/engine.rb

Summary

Maintainability
A
35 mins
Test Coverage
module EventCounter
  class Engine < ::Rails::Engine
    isolate_namespace EventCounter

    initializer :append_migrations do |app|
      unless app.root.to_s.match root.to_s + File::SEPARATOR
        config.paths["db/migrate"].expanded.each do |path|
          app.config.paths["db/migrate"] << path
        end
      end
    end
  end
end