Sha256: c03166299990c8ff8eb5df60338ee472f1af68d0fbd84a01efc6a1476b174748
Contents?: true
Size: 433 Bytes
Versions: 24
Compression:
Stored size: 433 Bytes
Contents
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
24 entries across 24 versions & 3 rubygems