hashbrowns 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/example/Gemfile.lock +1 -1
- data/hashbrowns.gemspec +1 -1
- data/lib/hashbrowns/helpers/links_helpers.rb +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/example/Gemfile.lock
CHANGED
data/hashbrowns.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module HashBrowns
|
2
2
|
module LinksHelpers
|
3
3
|
def linkify(key, value, parent = false, id = false, text = false)
|
4
|
-
return "" if value.nil? or key.nil?
|
4
|
+
return "" if value.nil? or key.nil? or !value or !key
|
5
5
|
key, value, parent, id, text = key.to_s, value.to_s, parent.to_s, id.to_s, text.to_s
|
6
6
|
text = value if text
|
7
7
|
#puts "k #{key}, v #{value}, p #{parent} i #{id} t #{text}"
|