class ActiveRecord::Validations::TypedColumn

Public Instance Methods

binary?() click to toggle source
Calls superclass method
# File lib/active_record/validations/typed_column.rb, line 24
def binary?
  if __getobj__.respond_to?(:binary?)
    super
  else
    type == :binary
  end
end
number?() click to toggle source
Calls superclass method
# File lib/active_record/validations/typed_column.rb, line 8
def number?
  if __getobj__.respond_to?(:number?)
    super
  else
    type == :decimal || type == :integer
  end
end
text?() click to toggle source
Calls superclass method
# File lib/active_record/validations/typed_column.rb, line 16
def text?
  if __getobj__.respond_to?(:text?)
    super
  else
    type == :text || type == :string
  end
end