Skip to content

Commit 9368bbc

Browse files
author
server
committedSep 24, 2014
Thin server and fix rename deletion bug
1 parent c9db01d commit 9368bbc

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed
 

‎Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
source 'https://rubygems.org'
22

3+
gem 'thin'
34
gem 'rails', '4.1.4'
45
gem 'sass-rails', '~> 4.0.3'
56
gem 'uglifier', '>= 1.3.0'

‎Gemfile.lock

+7
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,15 @@ GEM
7171
execjs
7272
coffee-script-source (1.8.0)
7373
colorize (0.7.3)
74+
daemons (1.1.9)
7475
devise (3.3.0)
7576
bcrypt (~> 3.0)
7677
orm_adapter (~> 0.1)
7778
railties (>= 3.2.6, < 5)
7879
thread_safe (~> 0.1)
7980
warden (~> 1.2.3)
8081
erubis (2.7.0)
82+
eventmachine (1.0.3)
8183
execjs (2.2.1)
8284
faraday (0.9.0)
8385
multipart-post (>= 1.2, < 3)
@@ -185,6 +187,10 @@ GEM
185187
therubyracer (0.12.1)
186188
libv8 (~> 3.16.14.0)
187189
ref
190+
thin (1.6.2)
191+
daemons (>= 1.0.9)
192+
eventmachine (>= 1.0.0)
193+
rack (>= 1.0.0)
188194
thor (0.19.1)
189195
thread_safe (0.3.4)
190196
tilt (1.4.1)
@@ -230,6 +236,7 @@ DEPENDENCIES
230236
slim-rails
231237
sqlite3
232238
therubyracer
239+
thin
233240
turbolinks
234241
uglifier (>= 1.3.0)
235242
unicorn

‎app/controllers/api/v1/songs_controller.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def song_params
3131
pars = pars.permit(:name, :file)
3232
end
3333

34-
pars[:file] = params[:file]
34+
pars[:file] = params[:file] if params[:file]
3535
return pars
3636
end
3737
end

0 commit comments

Comments
 (0)
Please sign in to comment.