Class: Ephemeron::Store::Convert
- Inherits:
-
Object
- Object
- Ephemeron::Store::Convert
- Defined in:
- lib/ephemeron/store/convert.rb
Class Method Summary collapse
Class Method Details
.call(model_s, as_new_record: false) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/ephemeron/store/convert.rb', line 7 def call(model_s, as_new_record: false) if model_s.is_a?(ActiveRecord::Base) return class_name_and_id(model_s, as_new_record: as_new_record) end model_s.map { |model| class_name_and_id(model) }.join ', ' end |