Skip to content

Commit

Permalink
Refs #11: author validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBrendel committed Nov 3, 2017
1 parent c057e95 commit bfd3ea8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/author.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
class Author < ActiveRecord::Base
validates :last_name, presence: true
def name
first_name + ' ' + last_name
end
Expand Down

0 comments on commit bfd3ea8

Please sign in to comment.