lib/translate.rb in translate-rails3-plus-0.0.7 vs lib/translate.rb in translate-rails3-plus-0.0.8
- old
+ new
@@ -1,9 +1,9 @@
require 'ya2yaml'
module Translate
class Engine < Rails::Engine
- end if defined?(Rails) && Rails::VERSION::MAJOR == 3
+ end if defined?(Rails) && Rails::VERSION::MAJOR >= 3
class << self
# For configuring Google Translate API key
attr_accessor :api_key
# For configuring Bing Application id