Sha256: e48727fa05be7c7f493c47858a1af2a0d13f4287b5f1cb27793737b7ee6208fe
Contents?: true
Size: 366 Bytes
Versions: 1
Compression:
Stored size: 366 Bytes
Contents
require "private_pub/view_helpers" module PrivatePub class Railtie < Rails::Railtie 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.2.0 | lib/private_pub/railtie.rb |