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, = {}) unless PinballWizard::Registry.disabled?(name) partial_name = .fetch(:partial) { name } [:partial] = "features/#{partial_name}" render end end |