Consul 0.4.2 improves querying of nil powers

Posted . Visible to the public.

Previous versions of Consul Show archive.org snapshot exhibited strange behavior when querying a power that returns nil.

Consul 0.4.2+ behaves as expected:

power.notes # => returns nil
power.notes? # => returns false
power.notes! # => raises Consul::Powerless
power.note?(Note.last) # => returns false
power.note!(Note.last) # => raises Consul::Powerless
Henning Koch
Last edit
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2012-12-14 16:02)