Class: ItemListing
- Inherits:
-
ItemApplicationRecord
- Object
- ActiveRecord::Base
- ItemApplicationRecord
- ItemListing
- Includes:
- Restorable
- Defined in:
- lib/models/item_listing.rb
Instance Method Summary collapse
Instance Method Details
#assign_from_account(account) ⇒ Object
29 30 31 |
# File 'lib/models/item_listing.rb', line 29 def assign_from_account(account) self.channel_id = account.channel_id end |
#assign_from_item(item) ⇒ Object
25 26 27 |
# File 'lib/models/item_listing.rb', line 25 def assign_from_item(item) self.item_id = item.id end |