mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-28 13:31:06 +00:00
5 lines
168 B
Ruby
5 lines
168 B
Ruby
|
class ViewCount < ActiveRecord::Base
|
||
|
belongs_to :viewable, :polymorphic => true
|
||
|
validates_uniqueness_of :ip_address, :scope => [ :viewable_id, :viewable_type ]
|
||
|
end
|