Skip to content

Commit

Permalink
Support conditional engine loading when Rails is not required (#6)
Browse files Browse the repository at this point in the history
For people using a very lightweight clock configuration file (without requiring the entirety of Rails), this allows the engine file to not be required while still using the hooks for heartbeats etc.
  • Loading branch information
chaadow authored Sep 11, 2024
1 parent 8a5460d commit 78fd334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/clockwork_web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "safely/core"

# modules
require_relative "clockwork_web/engine"
require_relative "clockwork_web/engine" if defined?(Rails)
require_relative "clockwork_web/version"

module ClockworkWeb
Expand Down

0 comments on commit 78fd334

Please sign in to comment.