Sha256: 8a3eb2c720f003b1fd7d36aec4ea554d44bab1e6ca0987a4d130df332d9d9e21
Contents?: true
Size: 491 Bytes
Versions: 9
Compression:
Stored size: 491 Bytes
Contents
module ESA module Contexts class CreatedAtContext < ESA::Context def created_at @created_at end def created_at=(timespec) @created_at = timespec @filters = [lambda { |relation| relation.where(created_at: timespec) }] end def effective_path if self.parent_id.blank? [] else self.parent.effective_path end end def can_be_persisted? false end end end end
Version data entries
9 entries across 9 versions & 1 rubygems