Sha256: 2a70e965a52115068f5df4e3e265692de9c9e4724bc15bb5b24cfd33a2cb7755
Contents?: true
Size: 680 Bytes
Versions: 6
Compression:
Stored size: 680 Bytes
Contents
require 'ipizza' require 'rails' require 'ipizza-rails/form_helpers' class Ipizza::Rails::Railtie < ::Rails::Railtie generators do require 'ipizza-rails/generator/notification' require 'ipizza-rails/generator/init' end config.before_configuration do if File.exist?(Rails.root.join('config', 'ipizza.yml')) Ipizza::Config.configure do |c| c.certs_root = Rails.root.join('config', 'certificates') c.load_from_hash(YAML::load_file(Rails.root.join('config', 'ipizza.yml')).fetch(Rails.env)) end end end initializer 'ipizza-rails.view_helpers' do ActionView::Base.send :include, Ipizza::Rails::FormHelpers end end
Version data entries
6 entries across 6 versions & 1 rubygems