Fix access specifiers with private_class_methods instead of removing directly

This commit is contained in:
Akshay
2014-10-04 08:37:20 +05:30
parent fa830c8d69
commit 9524b514c6
10 changed files with 17 additions and 6 deletions

View File

@@ -1,11 +1,10 @@
class EmailLog < ActiveRecord::Base
belongs_to :user
validates_presence_of :email_type
validates_presence_of :to_address
belongs_to :post
belongs_to :topic
validates :email_type, :to_address, presence: true
scope :sent, -> { where(skipped: false) }
scope :skipped, -> { where(skipped: true) }