Sha256: cff366a50cb07e19aec2f76aabb652ff3c66b0dbaea8ce67e91ee4a49e89ae7f
Contents?: true
Size: 536 Bytes
Versions: 5
Compression:
Stored size: 536 Bytes
Contents
module Workarea module Configuration class AdministrableOptions < ActiveSupport::InheritableOptions def [](name) static_config = super return static_config if static_config.present? || static_config.to_s == 'false' return static_config unless check_fieldsets?(name) Configuration::Admin.instance.send(name) end private def check_fieldsets?(name) ::Mongoid.clients.any? && Configuration::Admin.fields.keys.include?(name.to_s) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems