Sha256: 0803f5f234d7931deaf373e8bd721c11fb2462f680d90797dc8951380464b0f4
Contents?: true
Size: 405 Bytes
Versions: 2
Compression:
Stored size: 405 Bytes
Contents
class Example < ApplicationRecord def self.check_for_global_method if defined?(schedule) raise "💥 Oh no, the ruby-clock DSL is in the global environment! 💥" else "🦝" end end def self.check_for_runner if defined?(shell) || defined?(rake) raise "💥 Oh no, the runners got included in the global environment! 💥" else "🐅" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-clock-2.0.0.beta5 | example-rails-app/app/models/example.rb |
ruby-clock-2.0.0.beta4 | example-rails-app/app/models/example.rb |