Module: Lexxy::Attachable

Defined in:
lib/lexxy/attachable.rb

Instance Method Summary collapse

Instance Method Details

#from_node(node) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/lexxy/attachable.rb', line 5

def from_node(node)
  attachable = super

  if attachable.is_a?(ActionText::Attachables::MissingAttachable)
    ActionText::Attachables::RemoteVideo.from_node(node) || attachable
  else
    attachable
  end
end