Method: EPlat::Mapping::Base#mappings
- Defined in:
- lib/e_plat/mapping/base.rb
#mappings ⇒ Object
e.g. native_key, ‘body_html’ => ‘description’
111 112 113 |
# File 'lib/e_plat/mapping/base.rb', line 111 def mappings #e.g. {e_plat_key: native_key, 'body_html' => 'description'} @mapping ||= native_attribute_aliases.map{|a| a[:alias_attribute] }.compact_blank.inject(&:merge) || {} end |