Module: CanTango::Config::Permits::Enabling

Included in:
CanTango::Config::Permits
Defined in:
lib/cantango/permits_ext/config/permits/enabling.rb

Instance Method Summary collapse

Instance Method Details

#enable_all!Object



9
10
11
# File 'lib/cantango/permits_ext/config/permits/enabling.rb', line 9

def enable_all!
  @disabled = {}
end

#enable_all_for(type) ⇒ Object



4
5
6
7
# File 'lib/cantango/permits_ext/config/permits/enabling.rb', line 4

def enable_all_for type
  @disabled ||= {}
  @disabled[type.to_sym] = nil
end