From fff419d0fc5d5755e315525b85272de5ad13d8f5 Mon Sep 17 00:00:00 2001 From: Benjamin Thouret Date: Fri, 4 Dec 2015 08:47:33 -0500 Subject: [PATCH] Remove NewsItem#to_s (not fixing administrate display bug) --- app/models/news_item.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/models/news_item.rb b/app/models/news_item.rb index 87e854da..6fcd62d9 100644 --- a/app/models/news_item.rb +++ b/app/models/news_item.rb @@ -4,8 +4,4 @@ class NewsItem < ActiveRecord::Base scope :published, -> { where(state: :published).order(published_at: :desc) } validates :published_at, presence: true, if: -> { state.published? } validates_presence_of :title, :state - - def to_s - id - end end