muck-engine 0.4.5 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.6
|
@@ -25,7 +25,7 @@ module MuckEngineHelper
|
|
25
25
|
|
26
26
|
# Outputs scripts that manipulate the country and state select controls
|
27
27
|
def country_scripts
|
28
|
-
return if @@country_scripts_included
|
28
|
+
return if defined?(@@country_scripts_included)
|
29
29
|
@@country_scripts_included = true
|
30
30
|
render :partial => 'scripts/country_scripts'
|
31
31
|
end
|
@@ -231,6 +231,7 @@ module MuckEngineHelper
|
|
231
231
|
end
|
232
232
|
|
233
233
|
def truncate_on_word(text, length = 270, end_string = ' ...')
|
234
|
+
return if text.blank?
|
234
235
|
if text.length > length
|
235
236
|
stop_index = text.rindex(' ', length)
|
236
237
|
stop_index = length - 10 if stop_index < length-10
|
data/muck-engine.gemspec
CHANGED