From 9e182186f4834447e24ae61939ff23e0606a16d5 Mon Sep 17 00:00:00 2001 From: Sergey Nartimov Date: Mon, 29 Oct 2012 17:41:48 +0300 Subject: [PATCH] use super in overrided attribute readers --- app/models/app.rb | 4 ++-- app/models/user.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/app.rb b/app/models/app.rb index 951a708..8447ffe 100644 --- a/app/models/app.rb +++ b/app/models/app.rb @@ -99,12 +99,12 @@ class App # Legacy apps don't have notify_on_errs and notify_on_deploys params def notify_on_errs - !(self[:notify_on_errs] == false) + !(super == false) end alias :notify_on_errs? :notify_on_errs def notify_on_deploys - !(self[:notify_on_deploys] == false) + !(super == false) end alias :notify_on_deploys? :notify_on_deploys diff --git a/app/models/user.rb b/app/models/user.rb index 4a3034e..39abe6d 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -33,7 +33,7 @@ class User end def per_page - self[:per_page] || PER_PAGE + super || PER_PAGE end def watching?(app) -- libgit2 0.21.2