Module: Paraphrase::ActiveModel Private
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
- #model_name ⇒ Object private
- #persisted? ⇒ Boolean private
- #to_key ⇒ Object private
- #to_model ⇒ Object private
- #to_param ⇒ Object private
Instance Method Details
#model_name ⇒ Object
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.
25 26 27 |
# File 'lib/paraphrase/active_model.rb', line 25 def model_name self.class.model_name end |
#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.
21 22 23 |
# File 'lib/paraphrase/active_model.rb', line 21 def persisted? true end |
#to_key ⇒ Object
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_model ⇒ Object
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_param ⇒ Object
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 |