Sha256: ed5ef5cb0d9f3abf8b3de9d38076350c628d8e35b90799110858e99e02bd1535
Contents?: true
Size: 340 Bytes
Versions: 2
Compression:
Stored size: 340 Bytes
Contents
module MakeWatchable module Watchable extend ActiveSupport::Concern included do has_many :watchings, :class_name => "MakeWatchable::Watching", :as => :watchable end module ClassMethods def watchable? true end end def watched_by?(watcher) watcher.watches?(self) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
make_watchable-0.0.3 | lib/make_watchable/watchable.rb |
make_watchable-0.0.2 | lib/make_watchable/watchable.rb |