Module: Hatio::StringfiedID
- Defined in:
- lib/hatio-core/active_record/stringified_id.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
:nodoc:.
Class Method Details
.included(base) ⇒ Object
:nodoc:
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/hatio-core/active_record/stringified_id.rb', line 5 def self.included(base) #:nodoc: super base.extend(ClassMethods) base.class_eval do include InstanceMethods class_attribute :meaningful_composite_key class_attribute :meaningful_id_separator class_attribute :self_sequence_length class_attribute :self_sequence_block end end |