Module: Ransack::Naming

Included in:
Search
Defined in:
lib/ransack/naming.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
# File 'lib/ransack/naming.rb', line 4

def self.included(base)
  base.extend ClassMethods
end

Instance Method Details

#persisted?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/ransack/naming.rb', line 8

def persisted?
  false
end

#to_keyObject



12
13
14
# File 'lib/ransack/naming.rb', line 12

def to_key
  nil
end

#to_modelObject



20
21
22
# File 'lib/ransack/naming.rb', line 20

def to_model
  self
end

#to_paramObject



16
17
18
# File 'lib/ransack/naming.rb', line 16

def to_param
  nil
end