noosfero | Public content in private community (#466)

Antonio Terceiro gitlab at gitlab.com
Fri Feb 13 14:30:22 BRST 2015


New comment for Merge Request 466

https://gitlab.com/noosfero/noosfero/merge_requests/466#note_858050


Antonio Terceiro

this should probably be in the model, as a default value for that field. something like:

```ruby
def initialize(*params)
  super
  self.published = self.profile.public_profile if self.published.nil?
end
```

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150213/e0e3c106/attachment-0001.html>


More information about the Noosfero-dev mailing list