Module: CanvasSync::Concerns::SyncMapping
- Extended by:
- ActiveSupport::Concern
- Included in:
- Record
- Defined in:
- lib/canvas_sync/concerns/sync_mapping.rb
Defined Under Namespace
Classes: Mapping
Class Method Summary collapse
Class Method Details
.mapping_for(model, key = nil) ⇒ Object
5 6 7 |
# File 'lib/canvas_sync/concerns/sync_mapping.rb', line 5 def self.mapping_for(model, key = nil) model.try(:get_sync_mapping, key) || Mapping.default_mappings[key || Mapping.normalize_model_name(model)] end |