Rename permision_eval - permission_eval

Hopefully this will help with getting rid of all the errors
that we've been receiving for PermissionEval.

Closes SCI-2991.
This commit is contained in:
Luka Murn 2019-05-31 09:56:54 +02:00
parent 27ccf7b8fe
commit b21bdddf15
3 changed files with 1 additions and 7 deletions

View file

@ -6,7 +6,7 @@ module SmartAnnotations
include Canaid::Helpers::PermissionsHelper
def check(user, team, type, object)
send("validate_#{type}_permissions", user, team, object)
__send__("validate_#{type}_permissions", user, team, object)
end
private

View file

@ -1,8 +1,5 @@
# frozen_string_literal: true
require 'smart_annotations/permision_eval'
require 'smart_annotations/html_preview'
module SmartAnnotations
class TagToHtml
attr_reader :html

View file

@ -1,8 +1,5 @@
# frozen_string_literal: true
require 'smart_annotations/permision_eval'
require 'smart_annotations/text_preview'
module SmartAnnotations
class TagToText
attr_reader :text