class ESA::Contexts::CreatedAtContext
Public Instance Methods
can_be_persisted?()
click to toggle source
# File app/models/esa/contexts/created_at_context.rb, line 21 def can_be_persisted? false end
created_at()
click to toggle source
# File app/models/esa/contexts/created_at_context.rb, line 4 def created_at @created_at end
created_at=(timespec)
click to toggle source
# File app/models/esa/contexts/created_at_context.rb, line 8 def created_at=(timespec) @created_at = timespec @filters = [lambda { |relation| relation.where(created_at: timespec) }] end
effective_path()
click to toggle source
# File app/models/esa/contexts/created_at_context.rb, line 13 def effective_path if self.parent_id.blank? [] else self.parent.effective_path end end