Update README.md

change update? to codestyle
This commit is contained in:
Anton Lipich 2021-04-22 13:14:14 +03:00 committed by GitHub
parent a09548c826
commit 51d3b499b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class PostPolicy
end
def update?
user.admin? or not post.published?
user.admin? || !post.published?
end
end
```