Module: AckRocketCmsCatalog::Controllers::Items
- Extended by:
- ActiveSupport::Concern
- Included in:
- ItemsController
- Defined in:
- lib/ack_rocket_cms_catalog/controllers/items.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
6 7 8 9 |
# File 'lib/ack_rocket_cms_catalog/controllers/items.rb', line 6 def index @items = item_class.enabled.sorted.to_a # index_crumbs end |
#page_title ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/ack_rocket_cms_catalog/controllers/items.rb', line 21 def page_title if @item @item.page_title else super end end |
#show ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/ack_rocket_cms_catalog/controllers/items.rb', line 11 def show @item = item_class.enabled.find(params[:id]) if !@item.text_slug.blank? and @item.text_slug != params[:id] redirect_to @item, status_code: 301 return end @parent_seo_page = find_seo_page(item_categories_path) if @seo_page.blank? # item_crumbs end |