Skip to content

Commit

Permalink
Update node.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren authored Nov 21, 2019
1 parent d8884d8 commit b3dc712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def body
end

def summary
body.split('\n')&.first
body.lines.first
end

# was unable to set up this relationship properly with ActiveRecord associations
Expand Down

0 comments on commit b3dc712

Please sign in to comment.