This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/models/link.rb

12 lines
156 B
Ruby

class Link < Item
field :url
validates_presence_of :url
def link
ApplicationController.helpers.link_to(self.name, self.url)
end
end