Sha256: c744ee54e019eb5e60e7feabe28e0824e8ae24058aa33f0dd1d57e835ae0b64b
Contents?: true
Size: 799 Bytes
Versions: 10
Compression:
Stored size: 799 Bytes
Contents
module Gaku module Core class Engine < ::Rails::Engine isolate_namespace Gaku engine_name 'gaku' config.autoload_paths += %W( #{config.root}/lib ) config.active_record.raise_in_transactional_callbacks = true initializer 'gaku.paperclip' do Paperclip.interpolates(:placeholder) do |_attachment, style| ActionController::Base.helpers.asset_path("missing_#{style}.png") end end initializer 'gaku.ruby_template_handler' do ActionView::Template.register_template_handler(:rb, :source.to_proc) end initializer 'gaku.mime_types' do Mime::Type.register 'application/xls', :xls end config.after_initialize do Rails.application.routes_reloader.reload! end end end end
Version data entries
10 entries across 10 versions & 2 rubygems