I am launching a beta site with a select group of users. I want to disable registration in the production environment only, and only for a short period of time (i.e. I don\'
Edit the user model and remove :registerable, I think that should give you what you want.
Edit:
I think this would work:
if Rails.env.production?
devise :database_authenticatable, :recoverable, :rememberable, :trackable, :validatable
else
devise :database_authenticatable, :recoverable, :rememberable, :trackable, :validatable, :registerable
end