From 98ba075c327c20f84bb465907ff1d954538e0e39 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 26 Jun 2014 15:11:45 +0300 Subject: User model to strong params. Comment other attr_accessible to let tests run Signed-off-by: Dmitriy Zaporozhets --- app/models/email.rb | 8 -------- 1 file changed, 8 deletions(-) (limited to 'app/models/email.rb') diff --git a/app/models/email.rb b/app/models/email.rb index 9068c2b87b6..57f476bd519 100644 --- a/app/models/email.rb +++ b/app/models/email.rb @@ -10,16 +10,8 @@ # class Email < ActiveRecord::Base - attr_accessible :email, :user_id - - # - # Relations - # belongs_to :user - # - # Validations - # validates :user_id, presence: true validates :email, presence: true, email: { strict_mode: true }, uniqueness: true validate :unique_email, if: ->(email) { email.email_changed? } -- cgit v1.2.3