Commit b5fd9cb40c8c32c50c27fd49c508f54b6db277e6

Authored by Braulio Bhavamitra
1 parent d71ef742

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 11 rescue_from :all do |e|
12 12 logger.error e
13 13 error! e.message, 500
14   - end
  14 + end unless Rails.env.test?
15 15  
16 16 @@NOOSFERO_CONF = nil
17 17 def self.NOOSFERO_CONF
... ...
app/models/profile.rb
... ... @@ -1093,6 +1093,11 @@ private :generate_url, :url_options
1093 1093 self.data[:fields_privacy]
1094 1094 end
1095 1095  
  1096 + # abstract
  1097 + def active_fields
  1098 + []
  1099 + end
  1100 +
1096 1101 def public_fields
1097 1102 self.active_fields
1098 1103 end
... ...