app/helpers/caboose/application_helper.rb in caboose-cms-0.9.92 vs app/helpers/caboose/application_helper.rb in caboose-cms-0.9.93
- old
+ new
@@ -24,9 +24,13 @@
end
def parent_categories
Caboose::Category.find(1).children.where(:status => 'Active')
end
+
+ def forem_user
+ return @logged_in_user
+ end
def gzip_javascript_include_tag(asset)
tag = javascript_include_tag asset
tag = tag.gsub(/\.js/i, ".js.gz") if Rails.env.production? && request.accept_encoding =~ /gzip/i
#tag = tag.gsub(/\.js/i, ".js.gz") if request.accept_encoding =~ /gzip/i