mirror of
https://github.com/diaspora/diaspora.git
synced 2026-04-29 03:01:03 -04:00
Logging photo.inspect after save
This commit is contained in:
@@ -22,7 +22,7 @@ class Photo < Post
|
||||
photo
|
||||
end
|
||||
|
||||
after_save {Rails.logger.info("After saving now the id is #{id}"
|
||||
after_save :log_inspection
|
||||
|
||||
def remote_photo
|
||||
@remote_photo ||= User.owner.url.chop + image.url
|
||||
|
||||
@@ -62,6 +62,11 @@ class Post
|
||||
signable_accessors.collect{|accessor|
|
||||
(self.send accessor.to_sym).to_s}.join ';'
|
||||
end
|
||||
|
||||
def log_inspection prefix
|
||||
Rails.logger.info prefix
|
||||
Rails.logger.info self.inspect
|
||||
end
|
||||
|
||||
protected
|
||||
def destroy_comments
|
||||
|
||||
Reference in New Issue
Block a user