Sha256: e0e3632f408f57f4380400ae8365698a14048aeccdb28b46124cb0eadfa9a8c9

Contents?: true

Size: 212 Bytes

Versions: 3

Compression:

Stored size: 212 Bytes

Contents

module TheCommentsBlackUserAgent
  extend ActiveSupport::Concern

  included do
    attr_accessible :ip, :state

    validates :user_agent, presence:   true
    validates :user_agent, 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_user_agent.rb
the_comments-0.9.9 app/models/concerns/the_comments_black_user_agent.rb
the_comments-0.9.0 app/models/concerns/the_comments_black_user_agent.rb