module Bannable::ActiveRecord
Public Instance Methods
bannable()
click to toggle source
# File lib/bannable/active_record.rb, line 3 def bannable send :include, InstanceMethods end
banned()
click to toggle source
# File lib/bannable/active_record.rb, line 7 def banned where(self.arel_table[:banned].not_eq(nil)) end
not_banned()
click to toggle source
# File lib/bannable/active_record.rb, line 11 def not_banned where(self.arel_table[:banned].eq(nil)) end