app.rb
#
# Returns the name of the channel current request is pointing to.
#
# @return [String]
#   Name of the channel.
#
Returns the name of the channel current request is pointing to.
Returns the name of the channel current request is pointing to .
def channel
    if params['channel']
      params['channel'].gsub('/','')
    else
      if params['prerelease'] == 'true' || params['nightlies'] == 'true'
        'current'
      else
        'stable'
      end
    end
  end
def channel if params [ 'channel' ] params [ 'channel' ] . gsub ( '/' , '' ) else if params [ 'prerelease' ] == 'true' || params [ 'nightlies' ] == 'true' 'current' else 'stable' end end end
Returns the name of the channel current request is pointing to.
Returns the name of the channel current request is pointing to .
Name of the channel.
Name of the channel .
String