lib/medea/jason_blob.rb in medea-0.6.6 vs lib/medea/jason_blob.rb in medea-0.6.7

- old
+ new

@@ -24,11 +24,15 @@ @__jason_state = :new @__jason_data = nil end end - def to_url - "#{@parent.to_url}/#{@attachment_name}" + def to_url mode=:secure + "#{@parent.to_url mode}/#{@attachment_name}" + end + + def to_public_url + to_url :public end def load_from_jasondb #because this object might be owned by another, we need to search by key. #not passing a format to the query is a shortcut to getting just the object.