Sha256: 94a8260a8386cb84204358817ea532e024a35a6e12a61730cf6e83fc6e1178e0
Contents?: true
Size: 497 Bytes
Versions: 5
Compression:
Stored size: 497 Bytes
Contents
module UploadColumn::AssetTagExtension def self.included(base) base.send :alias_method_chain, :image_tag, :uploaded_file_check end def image_tag_with_uploaded_file_check(source, options = {}) if(source.respond_to?(:public_path)) image_tag_without_uploaded_file_check(source.public_path, options) else image_tag_without_uploaded_file_check(source, options) end end end ActionView::Helpers::AssetTagHelper.send(:include, UploadColumn::AssetTagExtension)
Version data entries
5 entries across 5 versions & 1 rubygems