lib/refinery/i18n.rb in refinerycms-i18n-0.9.9.8 vs lib/refinery/i18n.rb in refinerycms-i18n-0.9.9.9

- old
+ new

@@ -1,7 +1,11 @@ # Encoding: UTF-8 <-- required, please leave this in. -require 'refinery' +if defined?(Refinery) && Refinery.version > '0.9.9' + require 'refinerycms-core' +else + require 'refinery' +end require 'routing-filter' module Refinery module I18n class Engine < Rails::Engine @@ -63,10 +67,10 @@ config.after_initialize do ::Refinery::I18n.setup! if defined?(RefinerySetting) and RefinerySetting.table_exists? Refinery::Plugin.register do |plugin| plugin.name = "refinery_i18n" - plugin.version = %q{0.9.9.8} + plugin.version = %q{0.9.9.9} plugin.hide_from_menu = true plugin.always_allow_access = true end end