Commit 4f417add9500b65219a28dc3a14d81bb0f7926e5
1 parent
a2e56267
Exists in
master
and in
22 other branches
rails3: remove old code from article
Showing
1 changed file
with
0 additions
and
42 deletions
Show diff stats
app/models/article.rb
... | ... | @@ -707,48 +707,6 @@ class Article < ActiveRecord::Base |
707 | 707 | img.nil? ? '' : img.attributes['src'] |
708 | 708 | end |
709 | 709 | |
710 | - private | |
711 | - | |
712 | - def self.f_type_proc(klass) | |
713 | - klass.constantize.type_name | |
714 | - end | |
715 | - | |
716 | - def self.f_profile_type_proc(klass) | |
717 | - klass.constantize.type_name | |
718 | - end | |
719 | - | |
720 | - def f_type | |
721 | - #join common types | |
722 | - case self.class.name | |
723 | - when 'TinyMceArticle', 'TextileArticle' | |
724 | - TextArticle.name | |
725 | - else | |
726 | - self.class.name | |
727 | - end | |
728 | - end | |
729 | - | |
730 | - def f_profile_type | |
731 | - self.profile.class.name | |
732 | - end | |
733 | - | |
734 | - def f_published_at | |
735 | - self.published_at | |
736 | - end | |
737 | - | |
738 | - def f_category | |
739 | - self.categories.collect(&:name) | |
740 | - end | |
741 | - | |
742 | - delegate :region, :region_id, :environment, :environment_id, :to => :profile, :allow_nil => true | |
743 | - | |
744 | - def public | |
745 | - self.public? | |
746 | - end | |
747 | - | |
748 | - def category_filter | |
749 | - categories_including_virtual_ids | |
750 | - end | |
751 | - | |
752 | 710 | delegate :region, :region_id, :environment, :environment_id, :to => :profile, :allow_nil => true |
753 | 711 | |
754 | 712 | def has_macro? | ... | ... |