Commit 9e182186f4834447e24ae61939ff23e0606a16d5

Authored by Sergey Nartimov
1 parent 64bbc4c1
Exists in master and in 1 other branch production

use super in overrided attribute readers

Showing 2 changed files with 3 additions and 3 deletions   Show diff stats
app/models/app.rb
@@ -99,12 +99,12 @@ class App @@ -99,12 +99,12 @@ class App
99 99
100 # Legacy apps don't have notify_on_errs and notify_on_deploys params 100 # Legacy apps don't have notify_on_errs and notify_on_deploys params
101 def notify_on_errs 101 def notify_on_errs
102 - !(self[:notify_on_errs] == false) 102 + !(super == false)
103 end 103 end
104 alias :notify_on_errs? :notify_on_errs 104 alias :notify_on_errs? :notify_on_errs
105 105
106 def notify_on_deploys 106 def notify_on_deploys
107 - !(self[:notify_on_deploys] == false) 107 + !(super == false)
108 end 108 end
109 alias :notify_on_deploys? :notify_on_deploys 109 alias :notify_on_deploys? :notify_on_deploys
110 110
app/models/user.rb
@@ -33,7 +33,7 @@ class User @@ -33,7 +33,7 @@ class User
33 end 33 end
34 34
35 def per_page 35 def per_page
36 - self[:per_page] || PER_PAGE 36 + super || PER_PAGE
37 end 37 end
38 38
39 def watching?(app) 39 def watching?(app)