models/concerns/plugin_modules/update_center.rb
# download update-center.json and bulk import to DB
download update-center.json and bulk import to DB
download update - center . json and bulk import to DB
def import_from_update_center
          newest_plugin = Plugin.order(released_at: :desc).take
          if newest_plugin
            update_plugins(fetched_plugins, newest_plugin.released_at)
          else
            bulk_insert_plugins(fetched_plugins)
          end
        end
def import_from_update_center newest_plugin = Plugin . order ( released_at : :desc ) . take if newest_plugin update_plugins ( fetched_plugins , newest_plugin . released_at ) else bulk_insert_plugins ( fetched_plugins ) end end
download update-center.json and bulk import to DB
download update - center . json and bulk import to DB