Module: DataMapper::Resource
- Defined in:
- lib/dm-filemaker-adapter/core_patches.rb
Overview
All this to tack on class and instance methods to the model/resource.
Class Method Summary collapse
Class Method Details
.included(klass) ⇒ Object
39 40 41 42 43 44 45 46 47 |
# File 'lib/dm-filemaker-adapter/core_patches.rb', line 39 def included(klass) included_orig(klass) if klass.repository.adapter.to_s[/filemaker/i] klass.instance_eval do extend repository.adapter.class::ModelMethods include repository.adapter.class::ResourceMethods end end end |
.included_orig ⇒ Object
38 |
# File 'lib/dm-filemaker-adapter/core_patches.rb', line 38 alias_method :included_orig, :included |