Sha256: 9abdd6a06a762df5778ac957aff6535c985999f5137f4c40ea6df24ea3fe6332
Contents?: true
Size: 528 Bytes
Versions: 3
Compression:
Stored size: 528 Bytes
Contents
module Streamit module ORM module ActiveRecord extend ActiveSupport::Concern include Streamit::Store included do belongs_to :actor, :polymorphic => true belongs_to :subject, :polymorphic => true belongs_to :receiver, :polymorphic => true default_scope order("started_at DESC") scope :ago, lambda { |num| where ["started_at > ?", Time.now - num.to_i.seconds] } end def save_stream! save! end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
streamit-0.0.6.2 | lib/streamit/orm/active_record.rb |
streamit-0.0.6.1 | lib/streamit/orm/active_record.rb |
streamit-0.0.6 | lib/streamit/orm/active_record.rb |