Permalink
Browse files

capcha off when user logged in

  • Loading branch information...
1 parent dc4f5a5 commit d37955ae211bdb8e5d3f00ec9bf2ca922da9c6c9 @poojagupta poojagupta committed Jul 14, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/feedback.rb
View
2 app/models/feedback.rb
@@ -21,7 +21,7 @@ class Feedback < ActiveRecord::Base
validates_presence_of :name, :email, :if => Proc.new { |obj| obj.profile_id.blank? }
validates_captcha :if => Proc.new { |obj| obj.profile_id.blank? }
- validates_captcha if RAILS_ENV == 'production'
+
after_save :send_feedback_to_admin

0 comments on commit d37955a

Please sign in to comment.