Sha256: 31218b21cb97497b32c00e0979d9cfa57b9478d3ec03bada5b20295a340f65b7

Contents?: true

Size: 291 Bytes

Versions: 2

Compression:

Stored size: 291 Bytes

Contents

class Backend::Articles::BaseController < Backend::BaseController
  before_action :find_article
  before_action do
    breadcrumb.add t('b.articles'), backend_articles_path
    breadcrumb.add @article.title
  end

  def find_article
    @article = Article.find params[:article_id]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
udongo-5.5.0 app/controllers/backend/articles/base_controller.rb
udongo-5.4.0 app/controllers/backend/articles/base_controller.rb