Skip to content

Commit

Permalink
change: set 'expand' by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Yutaka HARA committed Jun 26, 2012
1 parent b66880c commit 634fdb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/songs_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class SongsController < ApplicationController

N = 5
def index
@expand = params[:expand]
@expand = (params[:expand] == "0" ? false : true)
@dir = File.expand_path(params[:dir] || ROOT_DIR)
@queue = player.queue.first(N).map{|x| x and File.basename(x)}
@queue.push("...") if player.queue.size > N
Expand Down

0 comments on commit 634fdb5

Please sign in to comment.