Skip to content

Commit

Permalink
Ensure we call super so parent classes can initialize
Browse files Browse the repository at this point in the history
This is required to make the latest version of standard happy

See rubocop/ruby-style-guide#809
and rubocop/rubocop#8376 for context
  • Loading branch information
rsanheim committed Aug 24, 2020
1 parent 8f320f9 commit b740a3e
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/policies/cohort_report/facility_group_policy.rb
Expand Up @@ -3,6 +3,7 @@ class Scope < Scope
attr_reader :user, :scope

def initialize(user, scope)
super
@user = user
@scope = scope
end
Expand Down
1 change: 1 addition & 0 deletions app/policies/cohort_report/facility_policy.rb
Expand Up @@ -35,6 +35,7 @@ class Scope < Scope
attr_reader :user, :scope

def initialize(user, scope)
super
@user = user
@scope = scope
end
Expand Down
1 change: 1 addition & 0 deletions app/policies/cohort_report/organization_policy.rb
Expand Up @@ -7,6 +7,7 @@ class Scope < Scope
attr_reader :user, :scope

def initialize(user, scope)
super
@user = user
@scope = scope
end
Expand Down
1 change: 1 addition & 0 deletions app/policies/cohort_report/user_policy.rb
Expand Up @@ -3,6 +3,7 @@ class Scope < Scope
attr_reader :user, :scope

def initialize(user, scope)
super
@user = user
@scope = scope
end
Expand Down
1 change: 1 addition & 0 deletions app/policies/manage/admin/facility_group_policy.rb
Expand Up @@ -3,6 +3,7 @@ class Scope < Scope
attr_reader :user, :scope

def initialize(user, scope)
super
@user = user
@scope = scope
end
Expand Down
1 change: 1 addition & 0 deletions app/policies/manage/admin/facility_policy.rb
Expand Up @@ -3,6 +3,7 @@ class Scope < Scope
attr_reader :user, :scope

def initialize(user, scope)
super
@user = user
@scope = scope
end
Expand Down
1 change: 1 addition & 0 deletions app/policies/manage/admin/organization_policy.rb
Expand Up @@ -3,6 +3,7 @@ class Scope < Scope
attr_reader :user, :scope

def initialize(user, scope)
super
@user = user
@scope = scope
end
Expand Down
1 change: 1 addition & 0 deletions app/policies/manage/admin/user_policy.rb
Expand Up @@ -47,6 +47,7 @@ class Scope < Scope
attr_reader :user, :scope

def initialize(user, scope)
super
@user = user
@scope = scope
end
Expand Down
1 change: 1 addition & 0 deletions app/policies/manage/facility/facility_group_policy.rb
Expand Up @@ -9,6 +9,7 @@ class Scope < Scope
attr_reader :user, :scope

def initialize(user, scope)
super
@user = user
@scope = scope
end
Expand Down
1 change: 1 addition & 0 deletions app/policies/manage/facility/facility_policy.rb
Expand Up @@ -55,6 +55,7 @@ class Scope < Scope
attr_reader :user, :scope

def initialize(user, scope)
super
@user = user
@scope = scope
end
Expand Down
1 change: 1 addition & 0 deletions app/policies/manage/facility/organization_policy.rb
Expand Up @@ -3,6 +3,7 @@ class Scope < Scope
attr_reader :user, :scope

def initialize(user, scope)
super
@user = user
@scope = scope
end
Expand Down
1 change: 1 addition & 0 deletions app/policies/manage/facility_group_policy.rb
Expand Up @@ -49,6 +49,7 @@ class Scope < Scope
attr_reader :user, :scope

def initialize(user, scope)
super
@user = user
@scope = scope
end
Expand Down
1 change: 1 addition & 0 deletions app/policies/manage/organization_policy.rb
Expand Up @@ -45,6 +45,7 @@ class Scope < Scope
attr_reader :user, :scope

def initialize(user, scope)
super
@user = user
@scope = scope
end
Expand Down
1 change: 1 addition & 0 deletions app/policies/manage/protocol_drug_policy.rb
Expand Up @@ -33,6 +33,7 @@ class Scope < Scope
attr_reader :user, :scope

def initialize(user, scope)
super
@user = user
@scope = scope
end
Expand Down
1 change: 1 addition & 0 deletions app/policies/manage/protocol_policy.rb
Expand Up @@ -31,6 +31,7 @@ class Scope < Scope
attr_reader :user, :scope

def initialize(user, scope)
super
@user = user
@scope = scope
end
Expand Down
1 change: 1 addition & 0 deletions app/policies/manage/user/facility_policy.rb
Expand Up @@ -3,6 +3,7 @@ class Scope < Scope
attr_reader :user, :scope

def initialize(user, scope)
super
@user = user
@scope = scope
end
Expand Down
1 change: 1 addition & 0 deletions app/policies/manage/user/user_policy.rb
Expand Up @@ -41,6 +41,7 @@ class Scope < Scope
attr_reader :user, :scope

def initialize(user, scope)
super
@user = user
@scope = scope
end
Expand Down
1 change: 1 addition & 0 deletions app/policies/overdue_list/appointment_policy.rb
Expand Up @@ -19,6 +19,7 @@ class Scope < Scope
attr_reader :user, :scope

def initialize(user, scope)
super
@user = user
@scope = scope
end
Expand Down
1 change: 1 addition & 0 deletions app/policies/overdue_list/facility_policy.rb
Expand Up @@ -11,6 +11,7 @@ class Scope < Scope
attr_reader :user, :scope

def initialize(user, scope)
super
@user = user
@scope = scope
end
Expand Down
1 change: 1 addition & 0 deletions app/policies/overdue_list/patient_policy.rb
Expand Up @@ -7,6 +7,7 @@ class Scope < Scope
attr_reader :user, :scope

def initialize(user, scope)
super
@user = user
@scope = scope
end
Expand Down
1 change: 1 addition & 0 deletions app/policies/overdue_list/patient_summary_policy.rb
Expand Up @@ -7,6 +7,7 @@ class Scope < Scope
attr_reader :user, :scope

def initialize(user, scope)
super
@user = user
@scope = scope
end
Expand Down

0 comments on commit b740a3e

Please sign in to comment.