lucasrenan / publish

Adds the functionality to publish (or set as draft) a document using Mongoid.
https://github.com/lucasrenan/publish
MIT License
8 stars 4 forks source link

Remove view method publication_status #10

Open lucasrenan opened 10 years ago

lucasrenan commented 10 years ago

it's not make sense to have a method with view logic inside the gem. it's better to have a custom presenter method with this logic for apps.

def publication_status
  self.published? ? self.published_at : "draft"
end