Class: Wings::MemberIds
- Inherits:
-
Valkyrie::ValueMapper
- Object
- Valkyrie::ValueMapper
- Wings::MemberIds
- Defined in:
- lib/wings/converter_value_mapper.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.handles?(value) ⇒ Boolean
84 85 86 |
# File 'lib/wings/converter_value_mapper.rb', line 84 def self.handles?(value) value.first == :member_ids end |
Instance Method Details
#result ⇒ Object
88 89 90 91 |
# File 'lib/wings/converter_value_mapper.rb', line 88 def result members = value.last.map { |id| ActiveFedora::Base.find(id.to_s) } [:members, members] end |