Skip to content

Commit

Permalink
Simply view.increment! here, given that we've already got the view ob…
Browse files Browse the repository at this point in the history
…ject
  • Loading branch information
radar committed Jun 25, 2011
1 parent 7d9cc8d commit e626890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/forem/topic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def can_be_replied_to?
def register_view_by(user)
if user
view = views.find_or_create_by_user_id(user.id)
::Forem::View.increment_counter("count", view.id)
view.increment!("count")
end
end

Expand Down

0 comments on commit e626890

Please sign in to comment.