Module: Concerns::Methods::ClassMethods

Included in:
ShopifyApp
Defined in:
lib/concerns/methods.rb

Instance Method Summary collapse

Instance Method Details

#create(attributes) ⇒ Object



9
10
11
# File 'lib/concerns/methods.rb', line 9

def create(attributes)
  self.new(attributes).tap{ |a| a.save }
end

#destroy_allObject



13
14
15
# File 'lib/concerns/methods.rb', line 13

def destroy_all
  self.class.all.clear
end