Module: Frenchy::Veneer
- Defined in:
- lib/frenchy/veneer.rb
Overview
Veneer provides a friendly face on unfriendly models, allowing your Frenchy models to appear as though they were of another class.
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
8 9 10 11 12 |
# File 'lib/frenchy/veneer.rb', line 8 def self.included(base) if defined?(ActiveModel) base.extend(ClassMethods) end end |