Ruby gem to deny/block some subdomains for SaaS applications
Ruby
Latest commit 17254bc Feb 20, 2016 @deanpcmad Merge pull request #1 from asessa/patch-1
Update subdomains.rb
Permalink
Failed to load latest commit information.
lib Update subdomains.rb Apr 29, 2015
.gitignore initial commit Aug 8, 2012
Gemfile initial commit Aug 8, 2012
LICENSE initial commit Aug 8, 2012
README.md added lnk Aug 8, 2012
Rakefile initial commit Aug 8, 2012
saas_deny_subdomains.gemspec

README.md

SaaS Deny Subdomains

This gem runs a validation in a Ruby on Rails app on a specified field and denies a user from setting a subdomain as one of the following here.

Installation

Add this line to your application's Gemfile:

gem "saas_deny_subdomains"

And then execute:

$ bundle

Or install it yourself as:

$ gem install saas_deny_subdomains

Usage

Call deny_subdomains in an ActiveRecord class and pass the name of the attribute you wish to validate against the list of subdomains.

class Account < ActiveRecord::Base
  deny_subdomains :subdomains
end

Contributing

Fork it & Create a new Pull Request :)