Sha256: 26793ddc2166bd594439a68c817eca2cd3c2a90871971e65af480f101aeabfe6

Contents?: true

Size: 189 Bytes

Versions: 3

Compression:

Stored size: 189 Bytes

Contents

module TheCommentsBlackIp
  extend ActiveSupport::Concern
  
  included do
    attr_accessible :ip, :state

    validates :ip, presence:   true
    validates :ip, uniqueness: true
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
the_comments-1.0.0 app/models/concerns/the_comments_black_ip.rb
the_comments-0.9.9 app/models/concerns/the_comments_black_ip.rb
the_comments-0.9.0 app/models/concerns/the_comments_black_ip.rb