Commit b5fd9cb40c8c32c50c27fd49c508f54b6db277e6
1 parent
d71ef742
Exists in
ratings_minor_fixes
and in
4 other branches
api: raise errors on test environment
Showing
2 changed files
with
6 additions
and
1 deletions
Show diff stats
app/api/app.rb
@@ -11,7 +11,7 @@ module Api | @@ -11,7 +11,7 @@ module Api | ||
11 | rescue_from :all do |e| | 11 | rescue_from :all do |e| |
12 | logger.error e | 12 | logger.error e |
13 | error! e.message, 500 | 13 | error! e.message, 500 |
14 | - end | 14 | + end unless Rails.env.test? |
15 | 15 | ||
16 | @@NOOSFERO_CONF = nil | 16 | @@NOOSFERO_CONF = nil |
17 | def self.NOOSFERO_CONF | 17 | def self.NOOSFERO_CONF |
app/models/profile.rb
@@ -1093,6 +1093,11 @@ private :generate_url, :url_options | @@ -1093,6 +1093,11 @@ private :generate_url, :url_options | ||
1093 | self.data[:fields_privacy] | 1093 | self.data[:fields_privacy] |
1094 | end | 1094 | end |
1095 | 1095 | ||
1096 | + # abstract | ||
1097 | + def active_fields | ||
1098 | + [] | ||
1099 | + end | ||
1100 | + | ||
1096 | def public_fields | 1101 | def public_fields |
1097 | self.active_fields | 1102 | self.active_fields |
1098 | end | 1103 | end |