Module: RubyClock::Rails::ClassMethods
- Included in:
- RubyClock
- Defined in:
- lib/ruby-clock/rails.rb
Instance Method Summary collapse
Instance Method Details
#detect_and_load_rails_app ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/ruby-clock/rails.rb', line 4 def detect_and_load_rails_app begin require './config/environment.rb' puts "Detected rails app has been loaded." rescue LoadError end end |