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