diff options
author | Jonne Haß <me@jhass.eu> | 2014-09-06 06:52:18 +0400 |
---|---|---|
committer | Jonne Haß <me@jhass.eu> | 2014-09-06 06:52:18 +0400 |
commit | 01e012728722ea75faae9be9307d74fcce8ee770 (patch) | |
tree | 912409167549e7ff68a2438c7aa601766fe8d1b6 /lib | |
parent | 476376dcb0b886fef92b4add3757993f5ce66a8c (diff) |
Ignore embedded photos if invalid
For example if they're already present
Also refactor StatusMessage XML specs
Diffstat (limited to 'lib')
-rw-r--r-- | lib/diaspora/guid.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/diaspora/guid.rb b/lib/diaspora/guid.rb index 6f509a543..baf840a1f 100644 --- a/lib/diaspora/guid.rb +++ b/lib/diaspora/guid.rb @@ -4,7 +4,7 @@ module Diaspora::Guid # Creates a before_create callback which calls #set_guid and makes the guid serialize in to_xml def self.included(model) model.class_eval do - before_create :set_guid + after_initialize :set_guid xml_attr :guid validates :guid, :uniqueness => true |