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