Email confirmation for user working

This commit is contained in:
saurabhbhatia 2013-11-29 09:26:52 +08:00
parent 38b2d02d92
commit 9bc79fddd7
3 changed files with 7 additions and 1 deletions

View File

@ -5,7 +5,7 @@ class User
include Mongoid::Tree::Ordering # use mongoid-tree because mongoid-ordering needs mongoid(~>3.0)
include Mongoid::Timestamps
devise :database_authenticatable, :recoverable, :rememberable, :trackable, :registerable, :validatable #, :timeoutable
devise :database_authenticatable, :recoverable, :rememberable, :trackable, :registerable, :validatable, :confirmable #, :timeoutable
mount_uploader :avatar, AvatarUploader
@ -296,6 +296,10 @@ class User
end
end
# def active_for_authentication?
# super && approved?
# end
private
def rebuild_status_record

View File

@ -25,6 +25,7 @@ Orbit::Application.configure do
# config.cache_store = :mem_cache_store
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
config.assets.debug = false

View File

@ -41,6 +41,7 @@ Orbit::Application.configure do
# Enable serving of images, stylesheets, and JavaScripts from an asset server
# config.action_controller.asset_host = "http://assets.example.com"
config.action_mailer.default_url_options = { :host => 'http://new.tp.rulingcom.com' }
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
# config.assets.precompile += %w( search.js )