lib/grumlin/shortcuts.rb in grumlin-0.22.5 vs lib/grumlin/shortcuts.rb in grumlin-0.23.0

- old
+ new

@@ -13,10 +13,10 @@ def shortcut(name, shortcut = nil, override: false, lazy: true, &block) name = name.to_sym lazy = false if override - if Grumlin::Action::REGULAR_STEPS.include?(name) && !override + if Grumlin::Step::REGULAR_STEPS.include?(name) && !override raise ArgumentError, "overriding standard gremlin steps is not allowed, if you know what you're doing, pass `override: true`" end raise ArgumentError, "either shortcut or block must be passed" if [shortcut, block].count(&:nil?) != 1