Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # lib/blog_engine.rb
- module BlogEngine
- # Add in the current directory to the ruby load paths
- $LOAD_PATH << File.join(File.dirname(__FILE__))
- # Require the rails railstie. This ensures that rails
- # is loaded before our engine.
- require "rails"
- # Require our engine file only if we are using rails 3
- require "blog_engine/engine" if defined?(Rails) && Rails::VERSION::MAJOR == 3
- end
Add Comment
Please, Sign In to add comment