Sha256: 45a584961962bf96a75f3f12968160c8c06f29b9118ed4e3beea3603bc9bef95

Contents?: true

Size: 734 Bytes

Versions: 1

Compression:

Stored size: 734 Bytes

Contents

require 'rails_admin/config/base'
require 'rails_admin/config/hideable'

module RailsAdmin
  module Config
    module Sections
      # Configuration of the navigation view
      class Navigation < RailsAdmin::Config::Base
        # Defines the number of tabs to be renderer in the main navigation.
        # Rest of the links will be rendered to a drop down menu.
        # NOTE: "max_visible_tabs" is deprecated
        # FIXME: remove this after giving people an appropriate time
        # to change their code.
        register_class_option(:max_visible_tabs) do
          ActiveSupport::Deprecation.warn("Navigation.max_visible_tabs configuration option is deprecated", caller)
          5
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
elucid-rails_admin-0.0.1 lib/rails_admin/config/sections/navigation.rb