Sha256: ecb44de4f73a857740b53f253ad17b243f6c75adf395b0f14791e7ef422e418e
Contents?: true
Size: 783 Bytes
Versions: 3
Compression:
Stored size: 783 Bytes
Contents
require 'deface' module SolidusPrintInvoice class Engine < Rails::Engine engine_name 'solidus_print_invoice' initializer "spree.print_invoice.environment", :before => :load_config_initializers do |app| Spree::PrintInvoice::Config = Spree::PrintInvoiceConfiguration.new end initializer "spree.print_invoice.mimetypes" do |app| Mime::Type.register('application/pdf', :pdf) unless Mime::Type.lookup_by_extension(:pdf) end def self.activate Dir.glob(File.join(File.dirname(__FILE__), "../../app/**/*_decorator*.rb")) do |c| Rails.application.config.cache_classes ? require(c) : load(c) end end config.autoload_paths += %W(#{config.root}/lib) config.to_prepare &method(:activate).to_proc end end
Version data entries
3 entries across 3 versions & 1 rubygems