From b5fd9cb40c8c32c50c27fd49c508f54b6db277e6 Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Sat, 14 May 2016 12:15:47 -0300 Subject: [PATCH] api: raise errors on test environment --- app/api/app.rb | 2 +- app/models/profile.rb | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/api/app.rb b/app/api/app.rb index fe594d9..960ee3d 100644 --- a/app/api/app.rb +++ b/app/api/app.rb @@ -11,7 +11,7 @@ module Api rescue_from :all do |e| logger.error e error! e.message, 500 - end + end unless Rails.env.test? @@NOOSFERO_CONF = nil def self.NOOSFERO_CONF diff --git a/app/models/profile.rb b/app/models/profile.rb index e4eb8b3..b0f75db 100644 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -1093,6 +1093,11 @@ private :generate_url, :url_options self.data[:fields_privacy] end + # abstract + def active_fields + [] + end + def public_fields self.active_fields end -- libgit2 0.21.2