Skip to content

Commit f990f7e

Browse files
committed
Remove single line and attr_reader
1 parent 3c40b2f commit f990f7e

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

lib/user_content_report.rb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,34 @@ def initialize(reported_content:)
1515
# longer hold true.
1616
def course_url = lti_parameters['launch_presentation_return_url']
1717

18-
def human_model_name = reported_content.model_name.human
18+
def human_model_name = @reported_content.model_name.human
1919

2020
def reported_message
21-
case reported_content
21+
case @reported_content
2222
when RequestForComment
23-
reported_content.question
23+
@reported_content.question
2424
when Comment
25-
reported_content.text
25+
@reported_content.text
2626
end
2727
end
2828

2929
def related_request_for_comment
30-
case reported_content
30+
case @reported_content
3131
when RequestForComment
32-
reported_content
32+
@reported_content
3333
when Comment
34-
reported_content.request_for_comment
34+
@reported_content.request_for_comment
3535
end
3636
end
3737

3838
private
3939

40-
attr_reader :reported_content
41-
42-
def lti_parameters = LtiParameter.find_by(study_group:, exercise:)&.lti_parameters || {}
40+
def lti_parameters
41+
LtiParameter.find_by(study_group:, exercise:)&.lti_parameters || {}
42+
end
4343

4444
def study_group
45-
reported_content.submission.study_group
45+
@reported_content.submission.study_group
4646
end
4747

4848
def exercise

0 commit comments

Comments
 (0)