Sha256: d3c226c1c6a129632ed4a02f9334d85a5325da58750b1444d56d53f89e9a5042

Contents?: true

Size: 543 Bytes

Versions: 5

Compression:

Stored size: 543 Bytes

Contents

module Sitepress
  class Engine < ::Rails::Engine
    config.before_configuration do |app|
      app.paths["app/helpers"].push Sitepress.site.root_path.join("helpers")
      app.paths["app/assets"].push Sitepress.site.root_path.join("assets")
      app.paths["app/views"].push Sitepress.site.root_path

      # Setup concerns paths for Rails 4 (doesn't automatically populate)
      concerns_path = "app/controllers/concerns"
      unless app.paths.keys.include?(concerns_path)
        app.paths.add(concerns_path)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sitepress-rails-0.1.22 lib/sitepress/engine.rb
sitepress-rails-0.1.21 lib/sitepress/engine.rb
sitepress-rails-0.1.20 lib/sitepress/engine.rb
sitepress-rails-0.1.19 lib/sitepress/engine.rb
sitepress-rails-0.1.18 lib/sitepress/engine.rb