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, #or, #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



294
295
296
297
298
299
300
301
# File 'lib/lore/query_shortcuts.rb', line 294

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