accescible_app/app/models/cible/cible_article.rb
Nicolas Bally d4484275e8 initial
2011-06-25 12:08:06 +02:00

15 lines
293 B
Ruby

# -*- encoding : utf-8 -*-
class CibleArticle < ActiveRecord::Base
include Rails.application.routes.url_helpers
belongs_to :article
def url
if self.article and self.article.folder
article_path(:slug => self.article.slug, :folder_slug => self.article.folder.slug)
end
end
end