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