lib/ransack/adapters/mongoid/ransack/translate.rb



module Ransack
  module Translate

    def self.i18n_key(klass)
      # if ActiveRecord::VERSION::MAJOR == 3 && ActiveRecord::VERSION::MINOR == 0
      #   klass.model_name.i18n_key.to_s.tr('.', '/')
      # else
      #   klass.model_name.i18n_key.to_s
      # end
      klass.model_name.i18n_key.to_s
    end
  end
end