class PostsController < ApplicationController
    around_action :repeatable_read, only: :index, unless: proc { Rails.env.test? }

    def index
    end

    private

    def repeatable_read(&block)
		ActiveRecord::Base.transaction(isolation: :repeatable_read, &block)
    end
end