Module: Valkyrie::Types::ArrayDefault

Included in:
Valkyrie::Types
Defined in:
lib/valkyrie/types.rb

Instance Method Summary collapse

Instance Method Details

#member(type) ⇒ Object



100
101
102
103
104
105
106
# File 'lib/valkyrie/types.rb', line 100

def member(type)
  warn "[DEPRECATION] .member has been renamed to .of in dry-types and this " \
    "method will be removed in the next major version of Valkyrie. Please use " \
    ".of instead. " \
    "Called from #{Gem.location_of_caller.join(':')}"
  super.default([].freeze)
end

#of(type) ⇒ Object



96
97
98
# File 'lib/valkyrie/types.rb', line 96

def of(type)
  super.default([].freeze)
end