mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-19 19:44:40 +08:00
Merge pull request #1815 from Ducz0r/lm-sci-2991
Rename permision_eval - permission_eval [SCI-2991]
This commit is contained in:
commit
cedb10f83e
4 changed files with 1 additions and 8 deletions
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
require 'rails_helper'
|
||||
require 'smart_annotations/permision_eval'
|
||||
|
||||
describe SmartAnnotations::PermissionEval do
|
||||
let(:subject) { described_class }
|
||||
|
|
Loading…
Add table
Reference in a new issue