noosfero | Applying SOLID techniques (!1273)

antoniocoj gitlab at mg.gitlab.com
Tue Jul 4 17:50:17 BRT 2017


antoniocoj commented on a discussion on app/models/concerns/code_numbering.rb:

>        self.code_scope.maximum(self.code_numbering_field) || 0
>      end
>  
> +    def code_max
> +      max = nil
> +           
> +      if self.code_numbering_options[:start]
> +        max = self.code_numbering_options[:start].to_i - 1
> +      end
> +
> +      return max

Done

---
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1273#note_34188251
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170704/b3e0fa26/attachment.html>


More information about the Noosfero-dev mailing list