Commit 76069963

mo k <mo@mokhan.ca>
2012-10-08 22:31:43
define watermark method on photo to delegate back to the creation.
1 parent 2e4483b
Changed files (1)
app
models
app/models/photo.rb
@@ -19,6 +19,12 @@ class Photo < ActiveRecord::Base
   #def cropping?
     #!crop_x.blank? && !crop_y.blank? && !crop_w.blank? && !crop_h.blank?
   #end
+
+  def watermark
+    puts "#{creation.id} #{creation.watermark}"
+    creation.watermark
+  end
+  
   def to_s
     "#{id} #{image}"
   end