Module: Paraphrase::ActiveModel Private

Extended by:
ActiveSupport::Concern
Included in:
Query
Defined in:
lib/paraphrase/active_model.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#persisted?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


21
22
23
# File 'lib/paraphrase/active_model.rb', line 21

def persisted?
  true
end

#to_keyObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



9
10
11
# File 'lib/paraphrase/active_model.rb', line 9

def to_key
  [:q]
end

#to_modelObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



13
14
15
# File 'lib/paraphrase/active_model.rb', line 13

def to_model
  self
end

#to_paramObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



17
18
19
# File 'lib/paraphrase/active_model.rb', line 17

def to_param
  params.to_param
end