Class: Wings::PermissionValue

Inherits:
Valkyrie::ValueMapper
  • Object
show all
Defined in:
lib/wings/converter_value_mapper.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.handles?(value) ⇒ Boolean

Returns:

  • (Boolean)


124
125
126
# File 'lib/wings/converter_value_mapper.rb', line 124

def self.handles?(value)
  value.first == :permissions
end

Instance Method Details

#resultObject



128
129
130
# File 'lib/wings/converter_value_mapper.rb', line 128

def result
  [value.first, permissions]
end