Sha256: 1a440f9f40dba67682cf1f21d5c17712bf813c331f37f4345e79de3ed573af63
Contents?: true
Size: 771 Bytes
Versions: 6
Compression:
Stored size: 771 Bytes
Contents
require "refile" require "refile/rails/attachment_helper" module Refile # @api private class Engine < Rails::Engine initializer "refile.setup", before: :load_environment_config do Refile.store ||= Refile::Backend::FileSystem.new(Rails.root.join("tmp/uploads/store").to_s) Refile.cache ||= Refile::Backend::FileSystem.new(Rails.root.join("tmp/uploads/cache").to_s) ActiveSupport.on_load :active_record do require "refile/attachment/active_record" end ActionView::Base.send(:include, Refile::AttachmentHelper) ActionView::Helpers::FormBuilder.send(:include, AttachmentHelper::FormBuilder) end initializer "refile.app" do Refile.logger = Rails.logger Refile.app = Refile::App.new end end end
Version data entries
6 entries across 6 versions & 1 rubygems