Sha256: 5f3bcc623f587ccf5e7256439ad061e19c4fc8056eec408493b78417d748c578

Contents?: true

Size: 364 Bytes

Versions: 1

Compression:

Stored size: 364 Bytes

Contents

require "private_pub/view_helpers"

module PrivatePub
  class Engine < Rails::Engine
    initializer "private_pub.config" do
      path = Rails.root.join("config/private_pub.yml")
      PrivatePub.load_config(path, Rails.env) if path.exist?
    end

    initializer "private_pub.view_helpers" do
      ActionView::Base.send :include, ViewHelpers
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
private_pub-0.3.0 lib/private_pub/engine.rb