Skip to content

Commit

Permalink
Address Rails 5.1 before_filter deprecations.
Browse files Browse the repository at this point in the history
Removes support for Rails 3.
  • Loading branch information
kjohnston committed Dec 30, 2016
1 parent dd21e81 commit fc7b83e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.5.0 (December 29, 2016)

* Resolve deprecation warnings for `before_filter` and `skip_before_filter`
* Drop support for Rails 3

## 0.4.2 (December 29, 2016)

* Add unique parameter to new upload request to prevent Safari from consolidating requests
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
s3_relay (0.4.2)
s3_relay (0.5.0)
coffee-rails
rails

Expand Down
4 changes: 2 additions & 2 deletions app/controllers/s3_relay/uploads_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class S3Relay::UploadsController < ApplicationController

before_filter :authenticate
skip_before_filter :verify_authenticity_token
before_action :authenticate
skip_before_action :verify_authenticity_token

def new
render json: S3Relay::UploadPresigner.new.form_data
Expand Down
2 changes: 1 addition & 1 deletion lib/s3_relay/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module S3Relay
VERSION = "0.4.2"
VERSION = "0.5.0"
end

0 comments on commit fc7b83e

Please sign in to comment.