diff options
Diffstat (limited to 'app/models/query.rb')
-rw-r--r-- | app/models/query.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/query.rb b/app/models/query.rb index 6dea88c78..f5f929b30 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -327,7 +327,7 @@ class Query < ActiveRecord::Base if self == ::Query # Visibility depends on permissions for each subclass, # raise an error if the scope is called from Query (eg. Query.visible) - raise Exception.new("Cannot call .visible scope from the base Query class, but from subclasses only.") + raise "Cannot call .visible scope from the base Query class, but from subclasses only." end user = args.shift || User.current |