Ruby gem to deny/block some subdomains for SaaS applications
Switch branches/tags
Nothing to show
Latest commit 17254bc Feb 19, 2016 Dean Perry Merge pull request #1 from asessa/patch-1
Update subdomains.rb
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 added lnk Aug 8, 2012
Rakefile initial commit Aug 8, 2012
saas_deny_subdomains.gemspec initial commit Aug 8, 2012

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.


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


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


Fork it & Create a new Pull Request :)