Module: ActiveRecord::Acts::UuidIt
- Defined in:
- lib/uuid_it.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Instance Method Summary collapse
Instance Method Details
#uuid_it ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/uuid_it.rb', line 8 def uuid_it class_eval do send :include, InstanceMethods send :extend, ClassMethods has_one :uuid_object, :as => :uuidable, :class_name => "Uuid", :dependent => :destroy after_create :assign_uuid end end |