Module: ActiveDisablable::ClassMethods

Defined in:
lib/active_extend/active_disablable.rb

Instance Method Summary collapse

Instance Method Details

#all_disabledObject



16
17
18
# File 'lib/active_extend/active_disablable.rb', line 16

def all_disabled
  where(:enabled => false)
end

#all_include_disabledObject



12
13
14
# File 'lib/active_extend/active_disablable.rb', line 12

def all_include_disabled
  unscoped
end