Class: AppDecorator

Inherits:
Draper::Decorator
  • Object
show all
Defined in:
app/decorators/app_decorator.rb

Instance Method Summary collapse

Instance Method Details

#email_at_noticesObject


7
8
9
# File 'app/decorators/app_decorator.rb', line 7

def email_at_notices
  object.email_at_notices.join(', ')
end

#notify_err_displayObject


15
16
17
# File 'app/decorators/app_decorator.rb', line 15

def notify_err_display
  object.notify_on_errs ? '' : 'display: none;'
end

#notify_user_displayObject


11
12
13
# File 'app/decorators/app_decorator.rb', line 11

def notify_user_display
  object.notify_all_users ? 'display: none;' : ''
end