Load og data faster (after_save -> after_commit)
This commit is contained in:
parent
1a3ead3619
commit
3cead93dbc
1 changed files with 1 additions and 1 deletions
|
|
@ -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|
|
||||
|
|
|
|||
Loading…
Reference in a new issue