Class: ActiveRecord::UuidBase
- Inherits:
-
Base
- Object
- Base
- ActiveRecord::UuidBase
- Defined in:
- lib/active_record_uuid/uuid_base.rb
Class Method Summary collapse
Class Method Details
.inherited_with_uuid(kls) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/active_record_uuid/uuid_base.rb', line 5 def inherited_with_uuid(kls) inherited_without_uuid kls warn "[DEPRECATION] `UuidBaseHelper` and `ActiveRecord::UuidBase` are deprecated. Please inherit from `ActiveRecord::Base` and use `has_uuid` instead." kls.uuid_config do primary_key true association true hook :before_create end end |