module Redox::Models

Public Class Methods

format_datetime(d) click to toggle source
# File lib/redox/models/model.rb, line 3
def self.format_datetime(d)
  if d.respond_to?(:strftime)
    d.strftime(Redox::Models::Meta::TO_DATETIME_FORMAT)
  else
    d
  end
end