added admin (2) - fixed

parent dc7d9ddd
class Candidate < ApplicationRecord
class Candidate < ActiveRecord::Base
belongs_to :position
has_many :votes
def full_name
"#{ self.first_name }-#{ self.last_name }"
end
end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment