module PinballWizard::ViewHelpers::Rails
Public Instance Methods
feature(name, options = {})
click to toggle source
# 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