Sha256: c31c58a1545cd132f885395e9540a0400fd1f9f2a6fba088dac6be3840d6b183
Contents?: true
Size: 680 Bytes
Versions: 19
Compression:
Stored size: 680 Bytes
Contents
require File.join %w(admin_it data data_behavior) require File.join %w(admin_it data object) require File.join %w(admin_it data hash) # module AdminIt def self.register_data(entity_class, mod) return if entity_class.nil? @data_modules ||= [] @data_modules.unshift [entity_class, mod] end def self.data_module(entity_class) return nil if entity_class.nil? @data_modules ||= [] @data_modules.each do |mod| return mod[1] if entity_class <= mod[0] end end register_data Object, AdminIt::ObjectData register_data Hash, AdminIt::HashData end require File.join %w(admin_it data active_record) require File.join %w(admin_it data mongoid)
Version data entries
19 entries across 19 versions & 1 rubygems