Skip schedule_manually in attributes

[ci skip]
pull/8502/head
Oliver Günther 4 years ago
parent 6f37e3db9f
commit 38e913cb00
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 2
      app/models/type/attributes.rb

@ -111,7 +111,7 @@ module Type::Attributes
# * directly in other envs, e.g. test
definitions = representable_config.key?(:definitions) ? representable_config[:definitions] : representable_config
skip = ['_type', '_dependencies', 'attribute_groups', 'links', 'parent_id', 'parent', 'description']
skip = %w[_type _dependencies attribute_groups links parent_id parent description schedule_manually]
definitions.keys
.reject { |key| skip.include?(key) || definitions[key][:required] }
.map { |key| [key, JSON::parse(definitions[key].to_json)] }.to_h

Loading…
Cancel
Save