Sha256: 98fb854908dac189e9fa639f84e82f09a6242621df85b49aecbd04c20a6316d7
Contents?: true
Size: 632 Bytes
Versions: 17
Compression:
Stored size: 632 Bytes
Contents
module Workarea module Configuration class AdministrableOptions < ActiveSupport::InheritableOptions def method_missing(name, *args) 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 def respond_to_missing?(name, include_private) true end private def check_fieldsets?(name) ::Mongoid.clients.any? && Configuration::Admin.fields.keys.include?(name.to_s) end end end end
Version data entries
17 entries across 17 versions & 1 rubygems