Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

minor changes to engine

  • Loading branch information...
commit 3b2780474d2ccadfd7835d4f24f884ae23eadf4a 1 parent 698a18f
@logical42 authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.