Commit 709e6bf3 authored by John E. Vincent's avatar John E. Vincent

Adding links to ephemerals. Show links in objects

parent 87310930
......@@ -7,6 +7,7 @@ module Noah::Linkable
def link!(link_name)
link = Noah::Link.find_or_create(:path => link_name)
link.nodes = self
self.links << link
end
def unlink!(link_name)
......
......@@ -2,6 +2,7 @@ module Noah
class Ephemeral < Model
include EphemeralValidations
include Taggable
include Linkable
attribute :path
attribute :data
attribute :lifetime
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment