1
0
Fork 0
discourse-custom-wizard-unl.../serializers/api/endpoint_serializer.rb
2019-10-03 15:17:21 +10:00

12 Zeilen
255 B
Ruby

class CustomWizard::Api::EndpointSerializer < ::ApplicationSerializer
attributes :id,
:name,
:method,
:url,
:content_type,
:success_codes
def method
object.send('method')
end
end