lib/grumlin/shortcuts/storage.rb in grumlin-0.20.0 vs lib/grumlin/shortcuts/storage.rb in grumlin-0.20.1

- old
+ new

@@ -29,15 +29,9 @@ def ==(other) @storage == other.storage end def add(name, shortcut) - # not lazy shortcuts are allowed to be overridden - if known?(name) && @storage[name] != shortcut && shortcut.lazy? - raise ArgumentError, - "shortcut '#{name}' already exists" - end - @storage[name] = shortcut ac = action_class shortcut_methods_module.define_method(name) do |*args, **params|