title: active_for_authentication? not working
body: <p>I am using active_for_authentication? to allow only active users to login through devise.
  But it's not working.</p>
  
  <p>My controller:</p>
  
  <pre><code>class DashboardUsersController &lt; ApplicationController
  def active_for_authentication?
    super &amp;&amp; self.deactivated_ind
  end
  
  def inactive_message
    "Sorry, this account has been deactivated."
  end
  </code></pre>
  
  <p>My model:</p>
  
  <pre><code>class DashboardUser &lt; ActiveRecord::Base
  
    devise :database_authenticatable,:rememberable, :trackable, :validatable, :timeoutable
  
    attr_accessor :login
  
    def self.find_first_by_auth_conditions(warden_conditions)
      conditions = warden_conditions.dup
      if login = conditions.delete(:login)
        where(conditions).where(["username = :value OR lower(email) = lower(:value)", { :value =&gt; login }]).first
      else
        where(conditions).first
      end
    end
  end
  </code></pre>
  
  <p>My user table:</p>
  
  <pre><code>t.string   "deactivated_ind",      limit: 1
  t.date     "deactivated_date"
  </code></pre>
  
  <p>By using deactivated_ind Y / N i check user is active / inactive.
  Now i want allow devise to log in only those user have N in deactivated_ind colomn</p>