app/helpers/rostra/application_helper.rb in rostra-0.0.9 vs app/helpers/rostra/application_helper.rb in rostra-0.0.10
- old
+ new
@@ -1,7 +1,13 @@
module Rostra
module ApplicationHelper
+ # Loop thru included helper files and include them in the project.
+ #
+ Rostra::Config.included_helpers.each do |helper_file|
+ include helper_file
+ end
+
# Creates a list of tags linking to the index showing only questions with that tag
#
def tag_list(question)
content_tag :div, "Tags: #{question.tags.map { |tag| link_to tag, questions_path(:tag_search => "#{tag}")}.join}".html_safe, class: 'tags'
end