Permalink
Browse files

Don't load Rails 3.x features if we're not on Rails 3. Fixes #69.

  • Loading branch information...
1 parent 671ad33 commit e9347e7119ad64d6bc432dccd1e77bf8ae94dd6b @gabebw gabebw committed Mar 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bourbon.rb
View
@@ -1,7 +1,7 @@
require "bourbon/generator"
module Bourbon
- if defined?(Rails)
+ if defined?(Rails) && defined?(Rails::Engine)
class Engine < ::Rails::Engine
require 'bourbon/engine'
end

0 comments on commit e9347e7

Please sign in to comment.