Module: Reference::Source

Extended by:
ActiveSupport::Concern
Included in:
Comment, Message, StatusMessage
Defined in:
app/models/reference.rb

Instance Method Summary collapse

Instance Method Details

#create_referencesObject


16
17
18
19
20
# File 'app/models/reference.rb', line 16

def create_references
  text&.scan(DiasporaFederation::Federation::DiasporaUrlParser::DIASPORA_URL_REGEX)&.each do |author, type, guid|
    add_reference(author, type, guid)
  end
end