Email confirmation for user working
This commit is contained in:
		
							parent
							
								
									38b2d02d92
								
							
						
					
					
						commit
						9bc79fddd7
					
				| 
						 | 
					@ -5,7 +5,7 @@ class User
 | 
				
			||||||
  include Mongoid::Tree::Ordering # use mongoid-tree because mongoid-ordering needs mongoid(~>3.0)
 | 
					  include Mongoid::Tree::Ordering # use mongoid-tree because mongoid-ordering needs mongoid(~>3.0)
 | 
				
			||||||
  include Mongoid::Timestamps
 | 
					  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
 | 
					  mount_uploader :avatar, AvatarUploader
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
| 
						 | 
					@ -296,6 +296,10 @@ class User
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  # def active_for_authentication? 
 | 
				
			||||||
 | 
					  #   super && approved? 
 | 
				
			||||||
 | 
					  # end 
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
  private
 | 
					  private
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def rebuild_status_record
 | 
					  def rebuild_status_record
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -25,6 +25,7 @@ Orbit::Application.configure do
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # config.cache_store = :mem_cache_store
 | 
					  # config.cache_store = :mem_cache_store
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  config.action_mailer.default_url_options = { :host => 'localhost:3000' }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config.assets.debug = false
 | 
					  config.assets.debug = false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -41,6 +41,7 @@ Orbit::Application.configure do
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # Enable serving of images, stylesheets, and JavaScripts from an asset server
 | 
					  # Enable serving of images, stylesheets, and JavaScripts from an asset server
 | 
				
			||||||
  # config.action_controller.asset_host = "http://assets.example.com"
 | 
					  # 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)
 | 
					  # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
 | 
				
			||||||
  # config.assets.precompile += %w( search.js )
 | 
					  # config.assets.precompile += %w( search.js )
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue