Module: MetaSearch::ModelCompatibility

Included in:
Builder
Defined in:
lib/meta_search/model_compatibility.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object


7
8
9
# File 'lib/meta_search/model_compatibility.rb', line 7

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

Instance Method Details

#persisted?Boolean


11
12
13
# File 'lib/meta_search/model_compatibility.rb', line 11

def persisted?
  false
end

#to_keyObject


15
16
17
# File 'lib/meta_search/model_compatibility.rb', line 15

def to_key
  nil
end

#to_modelObject


23
24
25
# File 'lib/meta_search/model_compatibility.rb', line 23

def to_model
  self
end

#to_paramObject


19
20
21
# File 'lib/meta_search/model_compatibility.rb', line 19

def to_param
  nil
end