Removed unused current_theme variables in ruby application

• Removed:
- unused current_theme variables in ruby application
This commit is contained in:
mgabdev 2020-07-10 13:26:24 -05:00
parent 1766ab08ba
commit a9c90487aa
2 changed files with 0 additions and 8 deletions

View File

@ -13,7 +13,6 @@ class ApplicationController < ActionController::Base
helper_method :current_account
helper_method :current_session
helper_method :current_theme
helper_method :single_user_mode?
helper_method :use_seamless_external_login?
@ -98,12 +97,6 @@ class ApplicationController < ActionController::Base
@current_session ||= SessionActivation.find_by(session_id: cookies.signed['_session_id'])
end
def current_theme
'default'
# : todo :
# current_user.setting_theme
end
def cache_collection(raw, klass)
return raw unless klass.respond_to?(:with_includes)

View File

@ -95,7 +95,6 @@ module ApplicationHelper
def body_classes
output = (@body_classes || '').split(' ')
output << "theme-#{current_theme.parameterize}"
output << 'rtl' if locale_direction == 'rtl'
output.reject(&:blank?).join(' ')
end