Class: Lore::Refined_Delete

Inherits:
Refined_Query show all
Defined in:
lib/lore/query_shortcuts.rb

Overview

class

Instance Method Summary collapse

Methods inherited from Refined_Query

#having, #initialize, #method_missing, #with

Constructor Details

This class inherits a constructor from Lore::Refined_Query

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Lore::Refined_Query

Instance Method Details

#performObject



262
263
264
265
266
267
268
269
# File 'lib/lore/query_shortcuts.rb', line 262

def perform
  @accessor.delete { |entity|
    entity.where(@condition)
    entity.limit(@limit, @offset) unless @limit.nil?
    entity.having(@having) unless @having.nil?
    entity
  }
end