diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 636c47a39..71cfaaf84 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -77,7 +77,8 @@ submit the change with your pull request. - Jim Stallings / [jestallin](https://github.com/jestallin) - Alyssa Ransbury / [alran](https://github.com/alran) - Thomas Countz / [thomascountz](https://github.com/thomascountz) +- Arun Kumar / [arun1595](https://github.com/arun1595) ## Bots -- Security and Dependency Updates / [deppbot](https://github.com/deppbot) \ No newline at end of file +- Security and Dependency Updates / [deppbot](https://github.com/deppbot) diff --git a/app/models/post.rb b/app/models/post.rb index 4a9f0e864..d16f8ac09 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -39,9 +39,7 @@ class Post < ActiveRecord::Base default_scope { order("created_at desc") } validates :subject, - format: { - with: /\S/ - }, + presence: true, length: { maximum: 255 } def author_date_subject