Oh no.. you're right..

These changes are fine.. but if the behaviour is correct then we get the
reduced sql queries with this code... these are minor improvements to the
code.. in the middle of some really ugly code, which we are not going to
keep around for long.. Keep that in mind.


On Mon, Aug 19, 2013 at 12:51 PM, Robert Guthrie <rguthrie@gmail.com> wrote:

> Nope I think that will cause a method missing on nil error.
>
>
>
> On Mon, Aug 19, 2013 at 12:39 PM, john irving <notifications@github.com>wrote:
>
>> In app/views/discussions/_discussion_preview.html.haml:
>>
>> > @@ -14,26 +19,26 @@
>> >            %span.activity-count.label.label-info
>> >              = discussion_activity
>> >        .discussion-date-info
>> > -        -if discussion.current_motion
>> > +        -if current_motion
>> >            - if discussion.current_motion_
>> closing_at
>> >              .proposal-close-date= "#{time_ago_in_words(discussion.current_motion_closing_at)} until close"
>>
>> same here
>>
>> —
>> Reply to this email directly or view it on GitHub<https://github.com/loomio/loomio/pull/980/files#r5833169>
>> .
>>
>
>