Sha256: c06b6659f3928e37c9fce11ece1874e9905bd999bbb88391c3346d19ee559aa6
Contents?: true
Size: 364 Bytes
Versions: 9
Compression:
Stored size: 364 Bytes
Contents
class StateEvent < ActiveRecord::Base belongs_to :user belongs_to :stateful, :polymorphic => true def <=>(other) created_at <=> other.created_at end def before_create if UserSession.activated? && current_user_session = UserSession.find self.user_id ||= current_user_session.user.id end true # don't stop the filters end end
Version data entries
9 entries across 9 versions & 1 rubygems