Fixed bug: Calling .shift on class variables provides leads to errors when Unit class is used multiple times.
This commit is contained in:
parent
eb00d57bac
commit
0ce0a9c06e
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ class Sequencer
|
|||
provides = self.class.provides
|
||||
raise 'Only one provide attribute possible' if provides.size != 1
|
||||
|
||||
attribute = provides.shift
|
||||
attribute = provides.first
|
||||
return if state.provided?(attribute)
|
||||
|
||||
result = fallback
|
||||
|
|
Loading…
Reference in a new issue