hackatime/config/initializers/monkey_patches.rb
Mahad Kalam ef94a9da9d
OAuth2 apps inertia'd! (#966)
* OAuth2 apps Inertia'd!

* Rose Pine/Rose Pine Dawn themes!

* Run formatting pass

* add some tests?
2026-02-17 13:45:44 +00:00

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