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