Module: Snapstats::ApplicationHelper

Defined in:
app/helpers/snapstats/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#active_cat?(cat_type) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'app/helpers/snapstats/application_helper.rb', line 3

def active_cat? cat_type
	raw "class=\"active section-#{cat_type}\"" if  params[:controller].scan(/#{cat_type.to_s}/).present? 
end