Sha256: d2aab946571d747fd257d153aa19a2783c69edb5b67ea25840c5182b6803d0f4

Contents?: true

Size: 267 Bytes

Versions: 3

Compression:

Stored size: 267 Bytes

Contents

module Blogr
  class User < ActiveRecord::Base

  	has_secure_password

  	validates_presence_of :first_name, :last_name, :username, :email, :password
    has_many :posts, class_name: "Blogr::Post"

  	def name
  		[first_name, last_name].join(" ")	
  	end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blogr-0.0.8 app/models/blogr/user.rb
blogr-0.0.7 app/models/blogr/user.rb
blogr-0.0.6 app/models/blogr/user.rb