Module: Iron::EntriesHelper
- Included in:
- ApplicationHelper
- Defined in:
- app/helpers/iron/entries_helper.rb
Instance Method Summary collapse
Instance Method Details
#current_content_page?(content_type) ⇒ Boolean
2 3 4 5 6 7 8 |
# File 'app/helpers/iron/entries_helper.rb', line 2 def current_content_page?(content_type) request.path.start_with?(content_type_entries_path(content_type)) || ( controller_name == "entries" && %w[show edit].include?(action_name) && Iron::Entry.find(params[:id]).content_type == content_type ) end |