viva-resource_controller 0.6.5.1 → 0.6.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/urligence.rb +3 -1
- metadata +1 -1
data/lib/urligence.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Urligence
|
2
2
|
def smart_url(*objects)
|
3
|
-
urligence *attach_params(
|
3
|
+
urligence *attach_params(nil, :url, *objects)
|
4
4
|
end
|
5
5
|
|
6
6
|
def smart_path(*objects)
|
@@ -26,7 +26,9 @@ module Urligence
|
|
26
26
|
params = {}
|
27
27
|
params.merge!(objects.pop) if objects.last.is_a?(Hash)
|
28
28
|
|
29
|
+
logger.debug("##### BEFORE:#{objects.inspect}")
|
29
30
|
objects.reject! { |object| object.nil? }
|
31
|
+
logger.debug("##### AFTER:#{objects.inspect}")
|
30
32
|
|
31
33
|
url_fragments = objects.collect do |obj|
|
32
34
|
if obj.is_a? Symbol
|