Sha256: 3c07900afde3d5fd04c822f49cb923d14cee5c3e48dbedb1790cc87a65fecae2
Contents?: true
Size: 452 Bytes
Versions: 1
Compression:
Stored size: 452 Bytes
Contents
class G5Updatable::SyncsController < G5Updatable::BaseUpdatableController before_action :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-1.0.2.pre.1 | app/controllers/g5_updatable/syncs_controller.rb |