Skip to content

Commit beef67d

Browse files
committed
Fix indentation
1 parent f6bfcbe commit beef67d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

app/controllers/admin/analytics_controller.rb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,13 @@ def print
4444
"CommunityNews" => CommunityNews
4545
}.freeze
4646

47-
klass = printable_models[params[:printable_type]]
48-
return head :bad_request unless klass
47+
klass = printable_models[params[:printable_type]]
48+
return head :bad_request unless klass
4949

50-
record = klass.find_by(id: params[:printable_id])
51-
return head :not_found unless record
52-
53-
record.increment_print_count!
50+
record = klass.find_by(id: params[:printable_id])
51+
return head :not_found unless record
5452

53+
record.increment_print_count!
5554
head :ok
5655
end
5756
end

0 commit comments

Comments
 (0)