Sha256: 28197ff2f726e7268f99d4e161a1b2de6811f498becca0e4a0f5a84490d539fb
Contents?: true
Size: 429 Bytes
Versions: 41
Compression:
Stored size: 429 Bytes
Contents
module Shipit class HookSerializer < ActiveModel::Serializer include ConditionalAttributes has_one :stack attributes :id, :url, :delivery_url, :content_type, :events, :insecure_ssl, :created_at, :updated_at def url if object.scoped? api_stack_hook_url(object.stack, object) else api_hook_url(object) end end def include_stack? object.scoped? end end end
Version data entries
41 entries across 41 versions & 1 rubygems