1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00

Re-add accessors for contact model. (D'oh.)

This commit is contained in:
Dan Barber 2014-03-05 17:44:54 +00:00
parent e0c31c1222
commit 34649b92ad

View File

@ -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)