lib/rflow/configuration/uuid_keyed.rb in rflow-1.3.0 vs lib/rflow/configuration/uuid_keyed.rb in rflow-1.3.1

- old
+ new

@@ -1,9 +1,14 @@ require 'uuidtools' class RFlow class Configuration + # Mixin for any {ConfigurationItem} that has a UUID key. + # Sets +primary_key+ column to be +uuid+ and initializes the + # UUID on creation. + # @!visibility private module UUIDKeyed + # @!visibility private def self.included(base) base.class_eval do self.primary_key = 'uuid' before_create :generate_uuid