diff --git a/lib/flowplayer.rb b/lib/flowplayer.rb index 7c6c7a5..671a79d 100644 --- a/lib/flowplayer.rb +++ b/lib/flowplayer.rb @@ -1,8 +1,5 @@ require 'flowplayer/player' if defined?(Rails) - if Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR >= 1 - require 'flowplayer/engine' - end require 'flowplayer/railtie' end \ No newline at end of file diff --git a/lib/flowplayer/railtie.rb b/lib/flowplayer/railtie.rb index 9f49b02..0aa7a3e 100644 --- a/lib/flowplayer/railtie.rb +++ b/lib/flowplayer/railtie.rb @@ -11,4 +11,8 @@ module Flowplayer end end end +end + +if Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR >= 1 + require 'flowplayer/railties/engine' end \ No newline at end of file