muck-engine 0.1.29 → 0.1.30
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/helpers/muck_engine_helper.rb +8 -8
- data/muck-engine.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.30
|
@@ -80,16 +80,16 @@ module MuckEngineHelper
|
|
80
80
|
end
|
81
81
|
|
82
82
|
def locale_link(name, locale)
|
83
|
-
|
83
|
+
link_to name, request.protocol + locale + '.' + request.domain + request.request_uri
|
84
84
|
#link_to name, request.url.gsub(request.protocol, "#{request.protocol}#{locale}.")
|
85
85
|
#link_to name, request.url.sub(request.protocol, "#{request.protocol}#{locale}.").sub('www.','')
|
86
|
-
protocol = request.protocol
|
87
|
-
if request.domain.count('.') == 1
|
88
|
-
|
89
|
-
else
|
90
|
-
|
91
|
-
end
|
92
|
-
link_to name, new_domain
|
86
|
+
# protocol = request.protocol
|
87
|
+
# if request.domain.count('.') == 1
|
88
|
+
# new_domain = request.url.sub(protocol, "#{protocol}#{locale}.")
|
89
|
+
# else
|
90
|
+
# new_domain = request.url.sub(Regexp.new(protocol + "[^\.]+."), "#{protocol}#{locale}.")
|
91
|
+
# end
|
92
|
+
# link_to name, new_domain
|
93
93
|
end
|
94
94
|
|
95
95
|
# Generate parameters for a url that refer to a given object as parent. Useful
|
data/muck-engine.gemspec
CHANGED