discourse/plugins/discourse-adplugin/lib/adplugin/engine.rb
Jarek Radosz e372355fd0
DEV: Clean up scope resolution operators in plugins (#34979)
Co-authored-by: Loïc Guitaut <loic@discourse.org>
2025-09-30 14:36:34 +02:00

20 lines
385 B
Ruby

# frozen_string_literal: true
module AdPlugin
class Engine < ::Rails::Engine
engine_name PLUGIN_NAME
isolate_namespace AdPlugin
end
def self.pstore_get(key)
PluginStore.get(PLUGIN_NAME, key)
end
def self.pstore_set(key, value)
PluginStore.set(PLUGIN_NAME, key, value)
end
def self.pstore_delete(key)
PluginStore.remove(PLUGIN_NAME, key)
end
end