noosfero | Ai2119 event block plugin (#400)
Arthur Del Esposte
gitlab at gitlab.com
Mon Jan 26 09:57:23 BRST 2015
New comment for Merge Request 400
https://gitlab.com/noosfero/noosfero/merge_requests/400#note_781681
Arthur Del Esposte
I've been asking myself if this method make any sense. I didn't find any situation where it's possible to have a block without an owner. And if it can exist a block without an owner, it's impossible to get it's enviroment, once it as method of Box object (see its definition).
What do you think if a I just leave this method as follow?
```ruby
def events_source
unless all_env_events
return self.owner
end
enviroment
end
```
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150126/da5740b3/attachment.html>
More information about the Noosfero-dev
mailing list