Class: PaperTrail::Queries::Versions::WhereObject Private
- Inherits:
-
Object
- Object
- PaperTrail::Queries::Versions::WhereObject
- Defined in:
- lib/paper_trail/queries/versions/where_object.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
For public API documentation, see where_object in paper_trail/version_concern.rb.
Instance Method Summary collapse
- #execute ⇒ Object private
-
#initialize(version_model_class, attributes) ⇒ WhereObject
constructor
private
-
version_model_class - The class that VersionConcern was mixed into.
-
Constructor Details
#initialize(version_model_class, attributes) ⇒ WhereObject
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.
-
version_model_class - The class that VersionConcern was mixed into.
-
attributes - A
Hashof attributes and values. See the public API documentation for details.
12 13 14 15 |
# File 'lib/paper_trail/queries/versions/where_object.rb', line 12 def initialize(version_model_class, attributes) @version_model_class = version_model_class @attributes = attributes end |
Instance Method Details
#execute ⇒ 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.
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/paper_trail/queries/versions/where_object.rb', line 18 def execute case @version_model_class.columns_hash["object"].type when :jsonb jsonb when :json json else text end end |