# Extra methods for uploadermoduleUploaderHelperdefimage?img_ext=%w(png jpg jpeg gif bmp tiff)iffile.respond_to?(:extension)img_ext.include?(file.extension.downcase)else# Not all CarrierWave storages respond to :extensionext=file.path.split('.').last.downcaseimg_ext.include?(ext)endrescuefalseenddeffile_storage?self.class.storage==CarrierWave::Storage::Fileendend