Skip to content

Commit

Permalink
1.2.6: #4
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jan 9, 2018
1 parent f934b78 commit 2da8eda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/controllers/df/core/thumb_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
module ::Df::Core
class ThumbController < ::ApplicationController
layout false
skip_before_filter :preload_json, :check_xhr
# 2018-01-10
# "`skip_before_filter` is deprecated, I need to replace it with `skip_before_action`":
# https://github.com/discourse-pro/df-core/issues/4
skip_before_action :preload_json, :check_xhr
def index
original = params[:original]
upload = Upload.find_by(sha1: original) || Upload.find_by(url: original)
Expand Down
2 changes: 1 addition & 1 deletion plugin.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# name: df-core
# about: A common functionality of my Discourse plugins.
# version: 1.2.5
# version: 1.2.6
# authors: Dmitry Fedyuk
# url: https://discourse.pro
#register_asset 'javascripts/lib/sprintf.js'
Expand Down

0 comments on commit 2da8eda

Please sign in to comment.