fanforce 0.3.14 → 0.3.15
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/lib/fanforce/utils.rb +3 -3
- data/lib/fanforce/version.rb +1 -1
- metadata +1 -1
data/lib/fanforce/utils.rb
CHANGED
@@ -102,9 +102,7 @@ module Fanforce::Utils
|
|
102
102
|
end
|
103
103
|
|
104
104
|
def to_param(obj, namespace=nil)
|
105
|
-
if obj.is_a?(
|
106
|
-
obj.to_s
|
107
|
-
elsif obj.is_a?(Array)
|
105
|
+
if obj.is_a?(Array)
|
108
106
|
collect { |e| e.to_param }.join '/'
|
109
107
|
elsif obj.is_a?(Hash)
|
110
108
|
to_query_string(obj, namespace)
|
@@ -114,6 +112,8 @@ module Fanforce::Utils
|
|
114
112
|
obj
|
115
113
|
elsif obj.is_a?(FalseClass)
|
116
114
|
obj
|
115
|
+
elsif obj.is_a?(Object)
|
116
|
+
obj.to_s
|
117
117
|
end
|
118
118
|
end
|
119
119
|
|
data/lib/fanforce/version.rb
CHANGED