Class: Solidstats::GemMetadataController

Inherits:
ApplicationController show all
Defined in:
app/controllers/solidstats/gem_metadata_controller.rb

Instance Method Summary collapse

Instance Method Details

#refreshObject



3
4
5
6
7
8
9
10
# File 'app/controllers/solidstats/gem_metadata_controller.rb', line 3

def refresh
  @gems = Solidstats::::FetcherService.call(nil, true)

  respond_to do |format|
    format.html { redirect_to "/solidstats#gem-metadata", notice: "Gem metadata refreshed successfully." }
    format.json { render json: { gems: @gems } }
  end
end