diff options
author | Jacopo <beschi.jacopo@gmail.com> | 2018-12-02 00:52:43 +0300 |
---|---|---|
committer | Jacopo <beschi.jacopo@gmail.com> | 2018-12-22 16:10:43 +0300 |
commit | d2851f41ba38a8292cd063aeb374f64541765bb9 (patch) | |
tree | 550c1fa4f2047789561a0bbee4c2938a8de505ca /app/models/dashboard_group_milestone.rb | |
parent | 8f3cef87e77291d92401dd88b9db23e8879ed053 (diff) |
Extend override check to also check arity
Override now cares about parents method arity: if parents arity
doesn't match raises an error.
Diffstat (limited to 'app/models/dashboard_group_milestone.rb')
-rw-r--r-- | app/models/dashboard_group_milestone.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/app/models/dashboard_group_milestone.rb b/app/models/dashboard_group_milestone.rb index 32e8104125c..ad0bb55f0a7 100644 --- a/app/models/dashboard_group_milestone.rb +++ b/app/models/dashboard_group_milestone.rb @@ -5,7 +5,6 @@ class DashboardGroupMilestone < GlobalMilestone attr_reader :group_name - override :initialize def initialize(milestone) super(milestone.title, Array(milestone)) |