Class: ActiveRecordPatchFirstOrCreate::ArelQueryCreator
- Inherits:
-
Struct
- Object
- Struct
- ActiveRecordPatchFirstOrCreate::ArelQueryCreator
- Defined in:
- lib/active_record_patch_first_or_create/arel_query_creator.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#relation ⇒ Object
Returns the value of attribute relation.
Instance Method Summary collapse
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes
2 3 4 |
# File 'lib/active_record_patch_first_or_create/arel_query_creator.rb', line 2 def attributes @attributes end |
#relation ⇒ Object
Returns the value of attribute relation
2 3 4 |
# File 'lib/active_record_patch_first_or_create/arel_query_creator.rb', line 2 def relation @relation end |
Instance Method Details
#to_sql ⇒ Object
3 4 5 |
# File 'lib/active_record_patch_first_or_create/arel_query_creator.rb', line 3 def to_sql insert_query.to_sql end |