uploader 3.1.2 → 3.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/app/controllers/uploader/uploads_controller.rb +7 -1
- data/uploader.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.
|
1
|
+
3.1.3
|
@@ -122,7 +122,13 @@ class Uploader::UploadsController < ApplicationController
|
|
122
122
|
redirect_to get_redirect(:permission_denied)
|
123
123
|
end
|
124
124
|
format.js { render :text => message }
|
125
|
-
format.json
|
125
|
+
format.json do
|
126
|
+
if Uploader.configuration.use_http_status_failures
|
127
|
+
render :json => message, :status => :unprocessable_entity
|
128
|
+
else
|
129
|
+
render :json => { :success => false, :message => message }
|
130
|
+
end
|
131
|
+
end
|
126
132
|
end
|
127
133
|
end
|
128
134
|
|
data/uploader.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{uploader}
|
8
|
-
s.version = "3.1.
|
8
|
+
s.version = "3.1.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Justin Ball", "Joel Duffin", "David South"]
|
metadata
CHANGED