noosfero | Adds option to set type of a field when using Noosfero::Plugin::Settings (!1218)

Victor Matias Navarro gitlab at mg.gitlab.com
Tue May 23 16:18:47 BRT 2017


New Merge Request !1218

https://gitlab.com/noosfero/noosfero/merge_requests/1218

Project:Branches: matias310396/noosfero:add_type_to_attributes to noosfero/noosfero:master
Author:    Victor Matias Navarro
Assignee:  

This adds a option to pass in initialize a hash which the key is the attribute you want to cast and the value is the type you want the attribute to be casted into. For instance, this would be acceptable:
`Noosfero::Plugin::Settings.new(base, plugin, {:string_attribute => "test", :boolean_attribute => "0"}, {:boolean_attribute => "boolean"})`


---
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1218
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/20170523/3d842fb1/attachment.html>


More information about the Noosfero-dev mailing list