Module: ExploreHelper
- Defined in:
- app/helpers/explore_helper.rb
Instance Method Summary collapse
Instance Method Details
#current_explore_section?(s) ⇒ Boolean
2 3 4 5 6 7 8 9 10 11 |
# File 'app/helpers/explore_helper.rb', line 2 def current_explore_section? s case s when 'explore' params[:section].blank? && controller.controller_name == 'explore' when 'search' controller.controller_name == 'search' else s == params[:section] end end |
#explore_button_class(btn) ⇒ Object
13 14 15 |
# File 'app/helpers/explore_helper.rb', line 13 def btn current_explore_section?(btn) ? 'active' : '' end |