tsurupin/portfolio

View on GitHub
app/controllers/client/api/v1/abouts_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Client::Api::V1::AboutsController < Client::ApplicationController
  def show
    json = rails_cache('cached_about') do
      author = Author.eager_load(:social_accounts).first
      Client::AboutSerializer.new(author)
    end

    render json: json
  end
end