Skip to content

Commit

Permalink
Remove NewsItem#to_s (not fixing administrate display bug)
Browse files Browse the repository at this point in the history
  • Loading branch information
benichu committed Dec 4, 2015
1 parent 7424e5b commit fff419d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/models/news_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fff419d

Please sign in to comment.