Load og data faster (after_save -> after_commit)

This commit is contained in:
Tamas Laszlo Fabian 2013-06-17 10:57:13 +02:00 committed by Jonne Haß
parent 1a3ead3619
commit 3cead93dbc

View file

@ -31,7 +31,7 @@ class StatusMessage < Post
before_create :filter_mentions
after_create :create_mentions
after_create :queue_gather_oembed_data, :if => :contains_oembed_url_in_text?
after_create :queue_gather_open_graph_data, :if => :contains_open_graph_url_in_text?
after_commit :queue_gather_open_graph_data, :on => :create, :if => :contains_open_graph_url_in_text?
#scopes
scope :where_person_is_mentioned, lambda { |person|