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

Version Path
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/activeadmin-2.9.0/lib/active_admin/settings_node.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/activeadmin-2.9.0/lib/active_admin/settings_node.rb
activeadmin-2.9.0 lib/active_admin/settings_node.rb
activeadmin-2.8.1 lib/active_admin/settings_node.rb
activeadmin-2.8.0 lib/active_admin/settings_node.rb
activeadmin-2.7.0 lib/active_admin/settings_node.rb
activeadmin-2.6.1 lib/active_admin/settings_node.rb
activeadmin-2.6.0 lib/active_admin/settings_node.rb
activeadmin-2.5.0 lib/active_admin/settings_node.rb
activeadmin-2.4.0 lib/active_admin/settings_node.rb
activeadmin-2.3.1 lib/active_admin/settings_node.rb
activeadmin-2.3.0 lib/active_admin/settings_node.rb
activeadmin-2.2.0 lib/active_admin/settings_node.rb
activeadmin-2.1.0 lib/active_admin/settings_node.rb
activeadmin-2.0.0 lib/active_admin/settings_node.rb
activeadmin-2.0.0.rc2 lib/active_admin/settings_node.rb
activeadmin_addons-1.7.1 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/settings_node.rb
activeadmin-2.0.0.rc1 lib/active_admin/settings_node.rb
activeadmin_addons-1.7.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/settings_node.rb
activeadmin_addons-1.6.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/settings_node.rb