Module: Iron::ContentTypesHelper

Included in:
ApplicationHelper
Defined in:
app/helpers/iron/content_types_helper.rb

Instance Method Summary collapse

Instance Method Details

#content_type_sidebar_url(content_type) ⇒ Object



3
4
5
6
7
8
9
# File 'app/helpers/iron/content_types_helper.rb', line 3

def content_type_sidebar_url(content_type)
  if content_type.single?
    entry_content_type_path(content_type)
  else
    content_type_entries_path(content_type)
  end
end