lib/mad_id.rb in mad_id-0.1.0 vs lib/mad_id.rb in mad_id-0.2.0

- old
+ new

@@ -8,13 +8,18 @@ require "mad_id/railtie" if defined?(Rails) module MadID extend ActiveSupport::Concern + @registry = {} + class << self + attr_accessor :registry + end + included do def self.identify_with(value) @identifier = value + MadID.registry[value.to_s] = self self.send(:include, MadID::IdentityMethods) end end - end