scinote-web/app/controllers/users/settings/account/addons_controller.rb
2023-06-14 05:13:33 +04:00

26 lines
624 B
Ruby

# frozen_string_literal: true
module Users
module Settings
module Account
class AddonsController < ApplicationController
before_action :set_breadcrumbs_items, only: %i(index show)
layout 'fluid'
def index
@label_printer_any = LabelPrinter.any?
end
private
def set_breadcrumbs_items
@breadcrumbs_items = []
@breadcrumbs_items.push({
label: t('breadcrumbs.addons'),
url: addons_path
})
end
end
end
end
end