Skip to content

Commit 109393a

Browse files
committed
remove unnecessary code
1 parent e363eda commit 109393a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

app/models/publication_type.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,4 @@ def self.get_publication_type_id(bibtex_record)
181181
other_type&.id
182182
end
183183

184-
begin
185-
type_registry.each_key do |title|
186-
define_singleton_method(title.gsub(/\s+/, '')) do
187-
find_by(key: type_registry[title]['key'])
188-
end
189-
end
190-
rescue => e
191-
Rails.logger.error("Failed to load publication types: #{e.message}")
192-
end
193184
end

0 commit comments

Comments
 (0)