Module: PinballWizard::ViewHelpers::Rails

Defined in:
lib/pinball_wizard/view_helpers/rails.rb

Instance Method Summary collapse

Instance Method Details

#feature(name, options = {}) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/pinball_wizard/view_helpers/rails.rb', line 4

def feature(name, options = {})
  unless PinballWizard::Registry.disabled?(name)
    partial_name = options.fetch(:partial) { name }
    options[:partial] = "features/#{partial_name}"
    render options
  end
end