Project

General

Profile

Bug #313

View.current does not return properly updated object

Added by david unric over 5 years ago. Updated 7 months ago.

Status:
Rejected
Priority:
Urgent
Assignee:
-
Category:
-
Target version:
-
Start date:
02/26/2013
Due date:
% Done:

0%

Estimated time:
0.00 h

Description

Hi,

just found a possible bug after playing with Subtlext::View instances.

irb> Subtlext::View.current
=> terms
irb> Subtlext::View.list[0]
=> terms
irb> Subtlext::View.current.id
=> 0
irb> Subtlext::View.list[0].id
=> 0

irb> Subtlext::View.list[0].tags
=> [default, terms]
irb> Subtlext::View.current.tags
TypeError: no implicit conversion from nil to integer
        from (irb):142:in `tags'
        from (irb):142
        from /usr/bin/irb:12:in `<main>'

So it seems Subtlext::View.current method fails to update tags variable for the returning object.

History

#1 Updated by Christoph Kappel 7 months ago

  • Status changed from Unconfirmed to Rejected

Working properly on current version.

Also available in: Atom PDF