Commit 80ac5127 authored by Uģis Ozols's avatar Uģis Ozols
Browse files

Use toplevel constant.

parent 07a29f05
......@@ -70,7 +70,7 @@ module Refinery
# rejects any page that has not been translated to the current locale.
def translated
includes(:translations).where(
translation_class.arel_table[:locale].eq(Globalize.locale)
translation_class.arel_table[:locale].eq(::Globalize.locale)
).where(
arel_table[:id].eq(translation_class.arel_table[:refinery_news_item_id])
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment