From 34649b92ad234e41134b9e8a205a999c9cd91a7b Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Wed, 5 Mar 2014 17:44:54 +0000 Subject: [PATCH] Re-add accessors for contact model. (D'oh.) --- app/models/contact.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/contact.rb b/app/models/contact.rb index f87a397..20f762f 100644 --- a/app/models/contact.rb +++ b/app/models/contact.rb @@ -5,6 +5,8 @@ class Contact validates :email, :email => true + attr_accessor :id, :email, :subject, :name, :message + def initialize(attributes = {}) attributes.each do |key, value| self.send("#{key}=", value)