Sha256: dba136c33986c71e0e131f829a0fafd527c73fa39033dd8328b6a2ec3bc232b0

Contents?: true

Size: 553 Bytes

Versions: 6

Compression:

Stored size: 553 Bytes

Contents

module Sufia
  module Admin
    class FeaturesController < Flipflop::FeaturesController
      layout 'admin'

      before_action do
        authorize! :manage, Sufia::Feature
      end

      # overriding so we can have a layout https://github.com/voormedia/flipflop/issues/18
      def index
        add_breadcrumb t(:'sufia.controls.home'), root_path
        add_breadcrumb t(:'sufia.toolbar.admin.menu'), sufia.admin_path
        add_breadcrumb t(:'sufia.admin.sidebar.settings'), sufia.admin_features_path
        super
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sufia-7.4.1 app/controllers/sufia/admin/features_controller.rb
sufia-7.4.0 app/controllers/sufia/admin/features_controller.rb
sufia-7.3.1 app/controllers/sufia/admin/features_controller.rb
sufia-7.3.0 app/controllers/sufia/admin/features_controller.rb
sufia-7.3.0.rc3 app/controllers/sufia/admin/features_controller.rb
sufia-7.3.0.rc2 app/controllers/sufia/admin/features_controller.rb