mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 22:15:14 +00:00
* OAuth2 apps Inertia'd! * Rose Pine/Rose Pine Dawn themes! * Run formatting pass * add some tests?
19 lines
397 B
Ruby
19 lines
397 B
Ruby
# 🔧🐒
|
|
|
|
Rails.configuration.to_prepare do
|
|
PaperTrail::Version.class_eval do
|
|
def user
|
|
begin
|
|
User.find(whodunnit) if whodunnit
|
|
rescue ActiveRecord::RecordNotFound
|
|
nil
|
|
end
|
|
end
|
|
end
|
|
end
|
|
class String
|
|
# Hopefully this is the right place! It a really good monkey patch!!
|
|
def categorize_language
|
|
WakatimeService.categorize_language(self)
|
|
end
|
|
end
|