Skip to content

Commit 2fe064e

Browse files
committed
2.3.2 validates
1 parent abd3074 commit 2fe064e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/models/micropost.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
class Micropost < ActiveRecord::Base
2+
validates :content, length: { maximum: 140 }
23
end

0 commit comments

Comments
 (0)