Sha256: 8a43e31a8814b35b2ec9c40b39946bbb03c4f9574a6cc4b4a28807a8f9abbe5a

Contents?: true

Size: 321 Bytes

Versions: 22

Compression:

Stored size: 321 Bytes

Contents

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

Version data entries

22 entries across 22 versions & 3 rubygems

Version Path
ransack-1.8.10 lib/ransack/adapters/mongoid/ransack/translate.rb
ransack-1.8.9 lib/ransack/adapters/mongoid/ransack/translate.rb
ransack-1.8.8 lib/ransack/adapters/mongoid/ransack/translate.rb
ransack-1.8.7 lib/ransack/adapters/mongoid/ransack/translate.rb
ransack-1.8.6 lib/ransack/adapters/mongoid/ransack/translate.rb
ransack-1.8.4 lib/ransack/adapters/mongoid/ransack/translate.rb
ransack-1.8.3 lib/ransack/adapters/mongoid/ransack/translate.rb
ransack-1.8.2 lib/ransack/adapters/mongoid/ransack/translate.rb
ransack-1.8.1 lib/ransack/adapters/mongoid/ransack/translate.rb
ransack-1.8.0 lib/ransack/adapters/mongoid/ransack/translate.rb
ransack-1.7.0 lib/ransack/adapters/mongoid/ransack/translate.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/ransack-1.6.6/lib/ransack/adapters/mongoid/ransack/translate.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/ransack-1.6.6/lib/ransack/adapters/mongoid/ransack/translate.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/ransack-1.6.6/lib/ransack/adapters/mongoid/ransack/translate.rb
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/ransack-1.6.2/lib/ransack/adapters/mongoid/ransack/translate.rb
ransack-1.6.6 lib/ransack/adapters/mongoid/ransack/translate.rb
ransack-1.6.5 lib/ransack/adapters/mongoid/ransack/translate.rb
ransack-1.6.4 lib/ransack/adapters/mongoid/ransack/translate.rb
ransack-1.6.3 lib/ransack/adapters/mongoid/ransack/translate.rb
ransack-1.6.2 lib/ransack/adapters/mongoid/ransack/translate.rb