Skip to content
Browse files

Only load rails engine if Rails is defined

  • Loading branch information...
1 parent 57a1c0c commit 798ee70ac9465eed072f947afbc519c13c46534b @rmm5t rmm5t committed Mar 10, 2013
Showing with 9 additions and 9 deletions.
  1. +1 −9 lib/font-awesome-rails.rb
  2. +8 −0 lib/font-awesome-rails/engine.rb
View
10 lib/font-awesome-rails.rb
@@ -1,10 +1,2 @@
require "font-awesome-rails/version"
-
-module Font
- module Awesome
- module Rails
- class Engine < ::Rails::Engine
- end
- end
- end
-end
+require "font-awesome-rails/engine" if defined?(::Rails)
View
8 lib/font-awesome-rails/engine.rb
@@ -0,0 +1,8 @@
+module Font
+ module Awesome
+ module Rails
+ class Engine < ::Rails::Engine
+ end
+ end
+ end
+end

0 comments on commit 798ee70

Please sign in to comment.
Something went wrong with that request. Please try again.