lib/lookbook/stores/panel_store.rb in lookbook-2.1.0 vs lib/lookbook/stores/panel_store.rb in lookbook-2.1.1

- old
+ new

@@ -17,14 +17,14 @@ def initialize(config = nil) @store = {} load_config(config) end - def add_panel(name, *) + def add_panel(name, *args) if get_panel(name) raise ConfigError.new("panel with name '#{name}' already exists", scope: "panels.config") else - store[Utils.symbolize_name(name)] = build_config(name, *) + store[Utils.symbolize_name(name)] = build_config(name, *args) end end def update_panel(name, opts = {}) panel = get_panel(name)