Commit 965a3caa1c31eef85f248ae22075a231b80876cd

Authored by Andrey Karpikov
1 parent 6a4b9d99

check generate page url, add new type for template element

@@ -74,7 +74,7 @@ module Kanjai @@ -74,7 +74,7 @@ module Kanjai
74 74
75 #@page_data = PageDatum.where(:url => @url).first 75 #@page_data = PageDatum.where(:url => @url).first
76 #$current_locale = PageLang.where(default_use: true).first.code 76 #$current_locale = PageLang.where(default_use: true).first.code
77 - @page_data = Kanjai::CurrentPage.new(domain: domain, lang: I18n.locale, url: @url).call 77 + @page_data = CurrentPage.new(domain: domain, lang: I18n.locale, url: @url).call
78 78
79 session[:current_locale] = I18n.locale 79 session[:current_locale] = I18n.locale
80 #if @page_data.nil? 80 #if @page_data.nil?
1 module Kanjai 1 module Kanjai
2 - VERSION = "0.0.332" 2 + VERSION = "0.0.333"
3 end 3 end