orbit-basic/app/models/link.rb

9 lines
151 B
Ruby
Raw Normal View History

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