Merge pull request #1815 from Ducz0r/lm-sci-2991

Rename permision_eval - permission_eval [SCI-2991]
This commit is contained in:
Luka Murn 2019-06-03 09:24:20 +02:00 committed by GitHub
commit cedb10f83e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 8 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

View file

@ -1,5 +1,4 @@
require 'rails_helper'
require 'smart_annotations/permision_eval'
describe SmartAnnotations::PermissionEval do
let(:subject) { described_class }