Sha256: c41aa1688a7bea06c35ec813e8daebdf70dcea2b578011e777a960927d385b90

Contents?: true

Size: 778 Bytes

Versions: 13

Compression:

Stored size: 778 Bytes

Contents

module C80NewsTz
  class Engine < ::Rails::Engine
    isolate_namespace C80NewsTz

    initializer :c80_news_tz_engine do
      if defined?(ActiveAdmin)
        ActiveAdmin.application.load_paths += Dir["#{config.root}/app/models/**/"]
        #ActiveAdmin.application.load_paths += Dir["#{config.root}/app/models/concerns/**/"]
        ActiveAdmin.application.load_paths += Dir["#{config.root}/app/admin/c80_news_tz/**/"]
        # ActiveAdmin.application.load_paths += Dir["#{config.root}/app/jobs/**/"]
      end
    end

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

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
c80_news_tz-0.1.1.26 lib/c80_news_tz/engine.rb
c80_news_tz-0.1.1.25 lib/c80_news_tz/engine.rb
c80_news_tz-0.1.1.24 lib/c80_news_tz/engine.rb
c80_news_tz-0.1.1.23 lib/c80_news_tz/engine.rb
c80_news_tz-0.1.1.22 lib/c80_news_tz/engine.rb
c80_news_tz-0.1.1.21 lib/c80_news_tz/engine.rb
c80_news_tz-0.1.1.19 lib/c80_news_tz/engine.rb
c80_news_tz-0.1.1.18 lib/c80_news_tz/engine.rb
c80_news_tz-0.1.1.17 lib/c80_news_tz/engine.rb
c80_news_tz-0.1.1.16 lib/c80_news_tz/engine.rb
c80_news_tz-0.1.1.15 lib/c80_news_tz/engine.rb
c80_news_tz-0.1.1.1 lib/c80_news_tz/engine.rb
c80_news_tz-0.1.1.0 lib/c80_news_tz/engine.rb