mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-27 06:29:07 +08:00
Fix Hound formatting
Closes SCI-2937
This commit is contained in:
parent
d1f966ee05
commit
761932282b
2 changed files with 7 additions and 4 deletions
|
|
@ -28,8 +28,8 @@ module ModelExporters
|
||||||
end
|
end
|
||||||
# Copying tiny_mce_assets
|
# Copying tiny_mce_assets
|
||||||
copy_files(@tiny_mce_assets_to_copy,
|
copy_files(@tiny_mce_assets_to_copy,
|
||||||
:image,
|
:image,
|
||||||
File.join(@dir_to_export, 'tiny_mce_assets'))
|
File.join(@dir_to_export, 'tiny_mce_assets'))
|
||||||
puts "Exported assets: #{@asset_counter}"
|
puts "Exported assets: #{@asset_counter}"
|
||||||
puts "Exported tinyMCE assets: #{@team.tiny_mce_assets.count}"
|
puts "Exported tinyMCE assets: #{@team.tiny_mce_assets.count}"
|
||||||
puts "Exported users: #{@team.users.count}"
|
puts "Exported users: #{@team.users.count}"
|
||||||
|
|
@ -66,8 +66,9 @@ module ModelExporters
|
||||||
def notification(notification)
|
def notification(notification)
|
||||||
notification_json = notification.as_json
|
notification_json = notification.as_json
|
||||||
notification_json['type_of'] = Extends::NOTIFICATIONS_TYPES
|
notification_json['type_of'] = Extends::NOTIFICATIONS_TYPES
|
||||||
.key(notification.read_attribute('type_of'))
|
.key(notification
|
||||||
.to_s
|
.read_attribute('type_of'))
|
||||||
|
.to_s
|
||||||
notification_json
|
notification_json
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'digest'
|
require 'digest'
|
||||||
|
|
||||||
class TeamImporter
|
class TeamImporter
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue