Sha256: 6f007b7c0be497318c6d307a8d870e520dbd3406d07c0995b62598e165a639d1

Contents?: true

Size: 992 Bytes

Versions: 20

Compression:

Stored size: 992 Bytes

Contents

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
        attr_reader :parent, :root

        NAMED_INSTANCE_VARIABLES = [:@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

20 entries across 20 versions & 1 rubygems

Version Path
rails_admin-2.3.1 lib/rails_admin/config/sections/base.rb
rails_admin-2.3.0 lib/rails_admin/config/sections/base.rb
rails_admin-2.2.1 lib/rails_admin/config/sections/base.rb
rails_admin-2.2.0 lib/rails_admin/config/sections/base.rb
rails_admin-2.1.1 lib/rails_admin/config/sections/base.rb
rails_admin-2.1.0 lib/rails_admin/config/sections/base.rb
rails_admin-2.0.2 lib/rails_admin/config/sections/base.rb
rails_admin-1.4.3 lib/rails_admin/config/sections/base.rb
rails_admin-2.0.1 lib/rails_admin/config/sections/base.rb
rails_admin-2.0.0 lib/rails_admin/config/sections/base.rb
rails_admin-2.0.0.rc lib/rails_admin/config/sections/base.rb
rails_admin-2.0.0.beta lib/rails_admin/config/sections/base.rb
rails_admin-1.4.2 lib/rails_admin/config/sections/base.rb
rails_admin-1.4.1 lib/rails_admin/config/sections/base.rb
rails_admin-1.4.0 lib/rails_admin/config/sections/base.rb
rails_admin-1.3.0 lib/rails_admin/config/sections/base.rb
rails_admin-1.2.0 lib/rails_admin/config/sections/base.rb
rails_admin-1.1.1 lib/rails_admin/config/sections/base.rb
rails_admin-1.1.0 lib/rails_admin/config/sections/base.rb
rails_admin-1.0.0 lib/rails_admin/config/sections/base.rb