Module: Tramway::DuckTyping::ActiveRecordCompatibility

Included in:
BaseDecorator, BaseForm
Defined in:
lib/tramway/duck_typing/active_record_compatibility.rb

Overview

This module is used to make duck object compatible with ActiveRecord objects

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



20
21
22
# File 'lib/tramway/duck_typing/active_record_compatibility.rb', line 20

def self.included(base)
  base.extend ClassMethods
end