Skip to content

Commit c0206dc

Browse files
committed
ensure rails 3.1
1 parent 22094e9 commit c0206dc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/jquery/datatables/rails/engine.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Configure for Rails 3.1
22
module Jquery
33
module Datatables
4-
module Rails
5-
class Engine < ::Rails::Engine
4+
if defined?(::Rails) and Rails.version >= "3.1"
5+
module ::Rails
6+
class Engine < ::Rails::Engine
7+
end
68
end
79
end
810
end

0 commit comments

Comments
 (0)