Class: LoopDance::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- LoopDance::Railtie
- Defined in:
- lib/loop_dance/railtie.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#server_startup? ⇒ Boolean
FIX: Is there more cute solution?.
Class Method Details
.load_dancers ⇒ Object
6 7 8 9 10 |
# File 'lib/loop_dance/railtie.rb', line 6 def self.load_dancers require 'dancers' rescue LoadError => err puts "LoopDance: can't load file 'lib/dancers.rb'." end |
Instance Method Details
#server_startup? ⇒ Boolean
FIX: Is there more cute solution?
20 21 22 |
# File 'lib/loop_dance/railtie.rb', line 20 def server_startup? caller.to_s=~/config\.ru/ end |