Sha256: 2b589899948a8265a92353bf9b943e88e2418cd32f213ce94fcf749e6daf6d3a
Contents?: true
Size: 607 Bytes
Versions: 21
Compression:
Stored size: 607 Bytes
Contents
# frozen_string_literal: true module NeetoCommonsBackend class AppVersionsController < ApplicationController def index render json: { "androidMinimumSupportedVersion": app_versions[:android_minimum_supported_version], "androidCurrentVersion": app_versions[:android_current_version], "iOSMinimumSupportedVersion": app_versions[:ios_minimum_supported_version], "iOSCurrentVersion": app_versions[:ios_current_version] } end private def app_versions @_app_versions ||= (Rails.application.secrets.app_versions || {}) end end end
Version data entries
21 entries across 21 versions & 1 rubygems