Class: Wings::IdValueMapper
- Inherits:
-
Valkyrie::ValueMapper
- Object
- Valkyrie::ValueMapper
- Wings::IdValueMapper
- Defined in:
- lib/wings/converter_value_mapper.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.handles?(value) ⇒ Boolean
169 170 171 |
# File 'lib/wings/converter_value_mapper.rb', line 169 def self.handles?(value) value.last.is_a? ::Valkyrie::ID end |
Instance Method Details
#result ⇒ Object
173 174 175 |
# File 'lib/wings/converter_value_mapper.rb', line 173 def result [value.first, values] end |
#values ⇒ Object
177 178 179 |
# File 'lib/wings/converter_value_mapper.rb', line 177 def values value.last.id end |