Sha256: f2049785d8ee44463c1d53d6dfc2777a91cc95598b2c33e3c7012fd67f144ca2

Contents?: true

Size: 434 Bytes

Versions: 11

Compression:

Stored size: 434 Bytes

Contents

module ActiveAdmin

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

      # @returns 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

11 entries across 11 versions & 3 rubygems

Version Path
activeadmin-rails-1.7.1 lib/active_admin/settings_node.rb
activeadmin-rails-1.7.0 lib/active_admin/settings_node.rb
activeadmin-rb-1.6.0 lib/active_admin/settings_node.rb
activeadmin-rb-1.5.2 lib/active_admin/settings_node.rb
activeadmin-rb-1.5.1 lib/active_admin/settings_node.rb
activeadmin-rb-1.5.0 lib/active_admin/settings_node.rb
activeadmin-rb-1.4.0 lib/active_admin/settings_node.rb
activeadmin-1.4.3 lib/active_admin/settings_node.rb
activeadmin-1.4.2 lib/active_admin/settings_node.rb
activeadmin-1.4.1 lib/active_admin/settings_node.rb
activeadmin-1.4.0 lib/active_admin/settings_node.rb