Skip to content
Browse files

Merge branch 'master' of github.com:Jarred-Sumner/FundingList.us

Conflicts:
	app/controllers/companies_controller.rb
  • Loading branch information...
2 parents ea6596d + 23b1f31 commit 89c630c74bd227df00ac15f194ecd9c61ddaa256 Jarred Sumner committed Feb 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/companies_controller.rb
View
2 app/controllers/companies_controller.rb
@@ -23,7 +23,7 @@ def create
end
def subscribe
- @email = EmailUpdate.create(:email => params[:email], :company_id => params[:id])
+ @email = EmailUpdate.create(:email => params[:email], :company_id => params[:id]) if EmailUpdate.where(:email => params[:email], :company_id => params[:id]).empty?
respond_to do |format|
format.html { redirect_to '/'}
format.json { render :json => @email }

0 comments on commit 89c630c

Please sign in to comment.
Something went wrong with that request. Please try again.