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)