Skip to content

Commit

Permalink
1.1.1: #3
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jan 9, 2018
1 parent b0eb080 commit b8098e4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions plugin.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# name: df-core-private
# version: 1.1.0
# version: 1.1.1
# authors: Dmitry Fedyuk
register_asset 'stylesheets/all.scss'
# 2016-10-07
Expand All @@ -15,7 +15,12 @@
# 2016-12-21
require 'categories_controller'
CategoriesController.class_eval do
before_filter :dfSetCategoryStyle
# 2018-01-10
# 1) «undefined method `before_filter' for CategoriesController:Class»
# https://github.com/discourse-pro/df-core-private/issues/3
# 2) «`before_filter` has been deprecated in Rails 5.0 and removed in 5.1»
# https://stackoverflow.com/a/45015788
before_action :dfSetCategoryStyle
private
def dfSetCategoryStyle
SiteSetting.desktop_category_page_style =
Expand Down

0 comments on commit b8098e4

Please sign in to comment.