[Git][noosfero/noosfero][master] 3 commits: New environment field exposes

Leandro Nunes gitlab at mg.gitlab.com
Wed Jul 20 14:15:11 BRT 2016


Leandro Nunes pushed to branch master at Noosfero / noosfero


Commits:
442eed8f by Michel Felipe at 2016-07-15T16:51:35-03:00
New environment field exposes

- - - - -
cfd24ca5 by Michel Felipe at 2016-07-20T14:05:50-03:00
New expose fields to Environmment entity

- - - - -
f2b2ff07 by Leandro Nunes at 2016-07-20T17:14:59+00:00
Merge branch 'environment-exposes-api' into 'master'

API - Environment entity new fields

Added the fields `:signup_intro`, `:terms_of_use` and `:top_url` (exposed using `:host` alias)  to `Environment` entity:

See merge request !982
- - - - -


1 changed file:

- app/api/entities.rb


Changes:

=====================================
app/api/entities.rb
=====================================
--- a/app/api/entities.rb
+++ b/app/api/entities.rb
@@ -270,6 +270,9 @@ module Api
       expose :id
       expose :description
       expose :layout_template
+      expose :signup_intro
+      expose :terms_of_use
+      expose :top_url, as: :host
       expose :settings, if: lambda { |instance, options| options[:is_admin] }
     end
 



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/5c1cc1c22686b33c47e8b4fe60788bb961f04f91...f2b2ff07679df38d6f5db012e4fcdc12a9e3670a
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160720/f08aff87/attachment-0001.html>


More information about the Noosfero-dev mailing list