Module: Versions::Multi
- Defined in:
- lib/versions/multi.rb
Overview
This module hides ‘has_many’ versions as if there was only a ‘belongs_to’ version, automatically registering the latest version’s id.
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 |
# File 'lib/versions/multi.rb', line 5 def self.included(base) base.extend ClassMethods end |