Method: Pageflow::Features#enable
- Defined in:
- lib/pageflow/features.rb
#enable(names, config) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
62 63 64 65 66 67 68 69 70 |
# File 'lib/pageflow/features.rb', line 62 def enable(names, config) @enabled_features = names names.each do |name| raise(ArgumentError, "Cannot enable unknown feature #{name}.") unless @features.key?(name) @features[name].enable(config) end end |