Skip to content

Commit

Permalink
Don't load Rails 3.x features if we're not on Rails 3. Fixes #69.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Mar 9, 2012
1 parent 671ad33 commit e9347e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bourbon.rb
@@ -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
Expand Down

0 comments on commit e9347e7

Please sign in to comment.