Sha256: e0b509172745f38245f5aaf0d989572a35498ff75301c169be7a7d4416896955

Contents?: true

Size: 249 Bytes

Versions: 1

Compression:

Stored size: 249 Bytes

Contents

# coding: utf-8

class RinfoController < ApplicationController
  include Rails.application.routes.url_helpers

  def info
    json_data = ::MemoryCache.instance.fetch('rinfo_data') do
      Rinfo.inform!
    end
    render json: json_data
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rinfo-0.2.0 app/controllers/rinfo_controller.rb