Module: SurfNPerf
- Defined in:
- lib/surfnperf.rb,
lib/surfnperf/rails.rb
Defined Under Namespace
Modules: Rails
Class Method Summary collapse
Class Method Details
.load! ⇒ Object
3 4 5 6 7 |
# File 'lib/surfnperf.rb', line 3 def load! if rails? register_rails_engine end end |
.rails? ⇒ Boolean
9 10 11 |
# File 'lib/surfnperf.rb', line 9 def rails? defined?(::Rails) end |