Sha256: 440adad5872b0f936ef2be1322c211d3e9aad3e5d8b3d5ab4e2dec03bfb154cc
Contents?: true
Size: 451 Bytes
Versions: 1
Compression:
Stored size: 451 Bytes
Contents
class G5Updatable::SyncsController < G5Updatable::BaseUpdatableController before_filter :set_client def index timestamp = @client.locations.max_updated_at render json: { updated_at: formatted_timestamp(timestamp) } end private def set_client @client = G5Updatable::Client.find_by_urn!(params[:urn]) end def formatted_timestamp(timestamp) timestamp.in_time_zone.strftime("%I:%M%P on %B %e, %Y") if timestamp end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
g5_updatable-0.20.3.pre.1 | app/controllers/g5_updatable/syncs_controller.rb |