Sha256: 124dd05d7b2c07392666518c61a828bf44be4e15027ff3085fac05542a151af6

Contents?: true

Size: 1001 Bytes

Versions: 12

Compression:

Stored size: 1001 Bytes

Contents

# frozen_string_literal: true

require 'rails_admin/config/proxyable'
require 'rails_admin/config/configurable'
require 'rails_admin/config/inspectable'
require 'rails_admin/config/has_fields'
require 'rails_admin/config/has_groups'
require 'rails_admin/config/has_description'

module RailsAdmin
  module Config
    module Sections
      # Configuration of the show view for a new object
      class Base
        include RailsAdmin::Config::Proxyable
        include RailsAdmin::Config::Configurable
        include RailsAdmin::Config::Inspectable

        include RailsAdmin::Config::HasFields
        include RailsAdmin::Config::HasGroups
        include RailsAdmin::Config::HasDescription

        attr_reader :abstract_model, :parent, :root

        NAMED_INSTANCE_VARIABLES = %i[@parent @root @abstract_model].freeze

        def initialize(parent)
          @parent = parent
          @root = parent.root

          @abstract_model = root.abstract_model
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rails_admin-3.2.1 lib/rails_admin/config/sections/base.rb
rails_admin-3.2.0 lib/rails_admin/config/sections/base.rb
rails_admin-3.2.0.rc lib/rails_admin/config/sections/base.rb
rails_admin-3.2.0.beta lib/rails_admin/config/sections/base.rb
rails_admin-3.1.4 lib/rails_admin/config/sections/base.rb
rails_admin-3.1.3 lib/rails_admin/config/sections/base.rb
rails_admin-3.1.2 lib/rails_admin/config/sections/base.rb
rails_admin-3.1.1 lib/rails_admin/config/sections/base.rb
rails_admin-3.1.0 lib/rails_admin/config/sections/base.rb
rails_admin-3.1.0.rc2 lib/rails_admin/config/sections/base.rb
rails_admin-3.1.0.rc lib/rails_admin/config/sections/base.rb
rails_admin-3.1.0.beta lib/rails_admin/config/sections/base.rb