module Formtastic::Inputs::Base::Fileish

Public Instance Methods

file?() click to toggle source
# File lib/formtastic/inputs/base/fileish.rb, line 6
def file?
  @file ||= begin
    # TODO return true if self.is_a?(Formtastic::Inputs::FileInput::Woo)
    object && object.respond_to?(method) && builder.file_methods.any? { |m| object.send(method).respond_to?(m) }
  end
end