lib/acfs/model/locatable.rb in acfs-0.7.0 vs lib/acfs/model/locatable.rb in acfs-0.8.0
- old
+ new
@@ -18,7 +18,12 @@
#
def url(suffix = nil)
service.url_for(self, suffix: suffix)
end
end
+
+ def url
+ return nil if id.nil?
+ self.class.service.url_for self, suffix: read_attribute(:id)
+ end
end
end