consuldemocracy / consuldemocracy

Consul Democracy - Open Government and E-Participation Web Software
https://consuldemocracy.org
GNU Affero General Public License v3.0
1.43k stars 1.1k forks source link

Add legislation document specs #2119

Open voodoorai2000 opened 6 years ago

voodoorai2000 commented 6 years ago

Where

What

How

ortegacmanuel commented 6 years ago

I'll work on this!

ortegacmanuel commented 6 years ago

@voodoorai2000 Hi! Working on this I found that Legislation processes don't belong to an User. So, I get this error undefined method author=' for #<Legislation::Process:0x0056447c37b740> on this line

Once I discovered it I stated working on how I could make nested documentable specs work with documentables that belongs to an User and that ones that don't belongs to an User.

But during the process I cannot stop thinking that to add an author attribute to the Legislation::Process is desirable. Just asking..maybe I'm wrong and there is a good reason for it not having an author attribute. I'll wait for your answer and I'll continue working on this based on your comments.