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:
parent
e0c31c1222
commit
34649b92ad
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user