simpler option handling

pull/10261/head
ulferts 3 years ago
parent 11153f4f3c
commit 1410601e13
No known key found for this signature in database
GPG Key ID: A205708DE1284017
  1. 8
      app/seeders/demo_data/query_builder.rb

@ -50,11 +50,11 @@ module DemoData
def base_attributes
{
name: config[:name],
user: User.admin.first,
public: config[:public] != false,
user: User.admin.user.first,
public: config.fetch(:public, true),
starred: config.fetch(:starred, false),
show_hierarchies: config[:hierarchy] == true,
timeline_visible: config[:timeline] == true
show_hierarchies: config.fetch(:hierarchy, false),
timeline_visible: config.fetch(:timeline, false)
}
end

Loading…
Cancel
Save