Method: DK::Posts#source_string

Defined in:
lib/draftking/posts/posts_helpers.rb

#source_string(symbol) ⇒ Object

Convert source symbol to string

Parameters:

  • symbol (Symbol)

    Source Symbol



54
55
56
57
# File 'lib/draftking/posts/posts_helpers.rb', line 54

def source_string(symbol)
  return 'draft' unless symbol
  symbol.to_s
end