Class: LoopDance::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/loop_dance/railtie.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.load_dancersObject



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?

Returns:

  • (Boolean)


20
21
22
# File 'lib/loop_dance/railtie.rb', line 20

def server_startup?
  caller.to_s=~/config\.ru/
end