Sha256: a398e66f842b06eef8f8f2fec612cfe8b695138c9f79b0cf5256174a7828fb92
Contents?: true
Size: 411 Bytes
Versions: 38
Compression:
Stored size: 411 Bytes
Contents
module Formtastic module Helpers # @private module FileColumnDetection def is_file?(method, options = {}) @files ||= {} @files[method] ||= (options[:as].present? && options[:as] == :file) || begin file = @object.send(method) if @object && @object.respond_to?(method) file && file_methods.any?{|m| file.respond_to?(m)} end end end end end
Version data entries
38 entries across 38 versions & 4 rubygems