Orbit/app/models/link.rb

9 lines
151 B
Ruby

class Link < Item
key :url, String, :required => true
def link
ApplicationController.helpers.link_to(self.title, self.url)
end
end