Guest User

Untitled

a guest
Jan 24th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. # lib/blog_engine.rb
  2. module BlogEngine
  3.  
  4. # Add in the current directory to the ruby load paths
  5. $LOAD_PATH << File.join(File.dirname(__FILE__))
  6.  
  7. # Require the rails railstie. This ensures that rails
  8. # is loaded before our engine.
  9. require "rails"
  10.  
  11. # Require our engine file only if we are using rails 3
  12. require "blog_engine/engine" if defined?(Rails) && Rails::VERSION::MAJOR == 3
  13.  
  14. end
Add Comment
Please, Sign In to add comment