class ActionText::Attachables::ContentAttachment
def self.from_node(node)
def self.from_node(node) if node["content-type"] if matches = node["content-type"].match(/vnd\.rubyonrails\.(.+)\.html/) attachment = new(name: matches[1]) attachment if attachment.valid? end end end