class Ransack::Name

Attributes

cache_key[R]
collection[R]
element[R]
human[R]
i18n_key[R]
param_key[R]
partial_path[R]
plural[R]
route_key[R]
singular[R]

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/ransack/naming.rb, line 34
def initialize
  super(Constants::CAP_SEARCH)
  @singular     = Constants::SEARCH
  @plural       = Constants::SEARCHES
  @element      = Constants::SEARCH
  @human        = Constants::CAP_SEARCH
  @collection   = Constants::RANSACK_SLASH_SEARCHES
  @partial_path = Constants::RANSACK_SLASH_SEARCHES_SLASH_SEARCH
  @param_key    = Constants::Q
  @route_key    = Constants::SEARCHES
  @i18n_key     = :ransack
end