hummingbird-me/kitsu-server

View on GitHub
app/models/concerns/content_embeddable.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module ContentEmbeddable
  extend ActiveSupport::Concern

  class_methods do
    def embed_links_in(content_attr, to:)
      attr_accessor :"#{to}_url"
      EmbedLinkCallbacks.with_options(content_attr: content_attr, to: to).hook(self)
    end
  end
end