1
0
Fork 0
discourse-custom-wizard-unl.../lib/api/api.rb

17 Zeilen
356 B
Ruby

2019-05-31 09:54:11 +02:00
class CustomWizard::Api
include ActiveModel::SerializerSupport
attr_accessor :service
def initialize(service)
@service = service
end
def self.list
PluginStoreRow.where("plugin_name LIKE 'custom_wizard_api_%' AND key = 'authorization'")
.map do |record|
self.new(record['plugin_name'].split('_').last)
end
end
end