Sha256: 62a2a3efaaeb4990e210131763090ca3679fedcda86e560eec303ec8c0dd8655

Contents?: true

Size: 463 Bytes

Versions: 17

Compression:

Stored size: 463 Bytes

Contents

# frozen_string_literal: true
module ActiveAdmin

  class SettingsNode
    class << self
      # Never instantiated.  Variables are stored in the singleton_class.
      private_class_method :new

      # @return anonymous class with same accessors as the superclass.
      def build(superclass = self)
        Class.new(superclass)
      end

      def register(name, value)
        class_attribute name
        send "#{name}=", value
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
activeadmin-3.2.5 lib/active_admin/settings_node.rb
activeadmin-3.2.4 lib/active_admin/settings_node.rb
activeadmin-3.2.3 lib/active_admin/settings_node.rb
activeadmin-3.2.2 lib/active_admin/settings_node.rb
activeadmin-3.2.1 lib/active_admin/settings_node.rb
activeadmin-3.2.0 lib/active_admin/settings_node.rb
activeadmin-3.1.0 lib/active_admin/settings_node.rb
activeadmin-3.0.0 lib/active_admin/settings_node.rb
activeadmin-2.14.0 lib/active_admin/settings_node.rb
activeadmin-2.13.1 lib/active_admin/settings_node.rb
activeadmin-2.13.0 lib/active_admin/settings_node.rb
activeadmin-2.12.0 lib/active_admin/settings_node.rb
activeadmin-2.11.2 lib/active_admin/settings_node.rb
activeadmin-2.11.1 lib/active_admin/settings_node.rb
activeadmin-2.11.0 lib/active_admin/settings_node.rb
activeadmin-2.10.1 lib/active_admin/settings_node.rb
activeadmin-2.10.0 lib/active_admin/settings_node.rb