Sha256: 79564eb7c31f5ad14e844683d561ae9f36b2aab7e91f5285b02f56897ef5925a

Contents?: true

Size: 464 Bytes

Versions: 14

Compression:

Stored size: 464 Bytes

Contents

require "private_pub/view_helpers"

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

    # Adds the ViewHelpers into ActionView::Base
    initializer "private_pub.view_helpers" do
      ActionView::Base.send :include, ViewHelpers
    end
  end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
private_pub_no_sig-0.0.1 lib/private_pub/engine.rb
peritus_private_pub-1.0.8 lib/private_pub/engine.rb
peritus_private_pub-1.0.7 lib/private_pub/engine.rb
peritus_private_pub-1.0.6 lib/private_pub/engine.rb
peritus_private_pub-1.0.5 lib/private_pub/engine.rb
peritus_private_pub-1.0.4 lib/private_pub/engine.rb
peritus_private_pub-1.0.3 lib/private_pub/engine.rb
peritus_private_pub-1.0.2 lib/private_pub/engine.rb
peritus_private_pub-1.0.1 lib/private_pub/engine.rb
peritus_private_pub-1.0.0 lib/private_pub/engine.rb
private_pub-1.0.3 lib/private_pub/engine.rb
private_pub-1.0.2 lib/private_pub/engine.rb
private_pub-1.0.1 lib/private_pub/engine.rb
private_pub-1.0.0 lib/private_pub/engine.rb