Class: ShopifyToolkit::CommandLine::Result

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/shopify_toolkit/command_line.rb

Class Method Summary collapse

Class Method Details

.commentsObject



13
14
15
# File 'lib/shopify_toolkit/command_line.rb', line 13

def self.comments
  distinct.pluck(:import_comment)
end

.with_comment(text) ⇒ Object



17
18
19
# File 'lib/shopify_toolkit/command_line.rb', line 17

def self.with_comment(text)
  where("import_comment LIKE ?", "%#{text}%")
end