diff --git a/app/models/site_feed.rb b/app/models/site_feed.rb index 7abc2eb..0240a0a 100644 --- a/app/models/site_feed.rb +++ b/app/models/site_feed.rb @@ -13,5 +13,10 @@ class SiteFeed field :feed_uid scope :enabled, ->{where(:disabled => false)} + + + def category + Category.find(self.merge_with_category) rescue nil + end end \ No newline at end of file diff --git a/app/views/admin/feeds/index.html.erb b/app/views/admin/feeds/index.html.erb index 783c049..06ff99c 100644 --- a/app/views/admin/feeds/index.html.erb +++ b/app/views/admin/feeds/index.html.erb @@ -51,6 +51,7 @@