Class: Recruiter::ArticleDecorator

Inherits:
Draper::Decorator
  • Object
show all
Includes:
DecoratorHelper, PublicableDecoratorHelper
Defined in:
app/decorators/recruiter/article_decorator.rb

Instance Method Summary collapse

Methods included from PublicableDecoratorHelper

#created_at_ago, #publication, #published_at, #updated?, #updated_at, #updated_at_ago

Methods included from DecoratorHelper

#decorate_boolean

Instance Method Details

#published?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'app/decorators/recruiter/article_decorator.rb', line 8

def published?
  decorate_boolean(object.published?)
end