Permalink
Browse files

minor changes to engine

  • Loading branch information...
1 parent 698a18f commit 3b2780474d2ccadfd7835d4f24f884ae23eadf4a @logical42 committed Nov 7, 2011
Showing with 4 additions and 20 deletions.
  1. +3 −9 lib/facebox-rails.rb
  2. +0 −10 lib/facebox-rails/railtie.rb
  3. +1 −1 lib/facebox-rails/version.rb
View
12 lib/facebox-rails.rb
@@ -1,9 +1,3 @@
-module Facebox
- module Rails
- if ::Rails.version < "3.1"
- require 'facebox-rails/railtie'
- else
- require 'facebox-rails/engine'
- end
- end
-end
+if defined? Rails && Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR >= 1
+ require 'facebox-rails/engine'
+end
View
10 lib/facebox-rails/railtie.rb
@@ -1,10 +0,0 @@
-module Facebox
- module Rails
- class Railtie < ::Rails::Railtie
- config.before_configuration do
- config.action_view.javascript_expansions[:defaults] |= %w(facebox)
- config.action_view.stylesheet_expansions[:defaults] |= %w(facebox)
- end
- end
- end
-end
View
2 lib/facebox-rails/version.rb
@@ -1,5 +1,5 @@
module Facebox
module Rails
- VERSION = "0.1.0"
+ VERSION = "0.1.1"
end
end

0 comments on commit 3b27804

Please sign in to comment.