Class: OembedLink
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- OembedLink
- Defined in:
- app/models/oembed_link.rb
Overview
Link from oembed tag
Attributes:
code [Text], optional
created_at [DateTime]
updated_at [DateTime]
url [String]
Constant Summary collapse
- URL_LIMIT =
255
Class Method Summary collapse
Class Method Details
.[](url) ⇒ Object
16 17 18 |
# File 'app/models/oembed_link.rb', line 16 def self.[](url) find_or_initialize_by(url: url) end |