Don't hard code the the user id hash, regenerate it so it works on every setup.

Sure, no worries. Is there a pylint style convention checker thingy for Ruby?

On June 14, 2014 11:55:52 PM AEST, Matthew Landauer <notifications@github.com> wrote:
>>  
>>  module HTMLCompareHelper
>> +  def get_id_hash(user_name)
>> +    text = File.read("../website/config.php")
>> +    text = text[/\$hidden_hash_var[\s]*=[\s]*'.*'/][/'.*'/]
>> +    salt = text[1..text.length-2]
>> +    return Digest::MD5.hexdigest(user_name + salt)
>
>In that case consider "avoid explicit returns" as coding style for the
>project
>
>---
>Reply to this email directly or view it on GitHub:
>https://github.com/openaustralia/publicwhip/pull/186/files#r13780831