Module: Spyro::ActionViewExtension::FeatureHelper
- Included in:
- ApplicationHelper
- Defined in:
- lib/spyro/helpers/action_view_extension.rb
Instance Method Summary collapse
Instance Method Details
#feature(name, &block) ⇒ Object
622 623 624 625 626 627 628 |
# File 'lib/spyro/helpers/action_view_extension.rb', line 622 def feature name, &block if User.current_user.has_feature? name capture(&block) else "" end end |