From 4f417add9500b65219a28dc3a14d81bb0f7926e5 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Tue, 21 Jan 2014 14:15:01 -0300 Subject: [PATCH] rails3: remove old code from article --- app/models/article.rb | 42 ------------------------------------------ 1 file changed, 0 insertions(+), 42 deletions(-) diff --git a/app/models/article.rb b/app/models/article.rb index f7dbf41..216adfa 100644 --- a/app/models/article.rb +++ b/app/models/article.rb @@ -707,48 +707,6 @@ class Article < ActiveRecord::Base img.nil? ? '' : img.attributes['src'] end - private - - def self.f_type_proc(klass) - klass.constantize.type_name - end - - def self.f_profile_type_proc(klass) - klass.constantize.type_name - end - - def f_type - #join common types - case self.class.name - when 'TinyMceArticle', 'TextileArticle' - TextArticle.name - else - self.class.name - end - end - - def f_profile_type - self.profile.class.name - end - - def f_published_at - self.published_at - end - - def f_category - self.categories.collect(&:name) - end - - delegate :region, :region_id, :environment, :environment_id, :to => :profile, :allow_nil => true - - def public - self.public? - end - - def category_filter - categories_including_virtual_ids - end - delegate :region, :region_id, :environment, :environment_id, :to => :profile, :allow_nil => true def has_macro? -- libgit2 0.21.2