Skip to content

Commit

Permalink
capcha off when user logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
poojagupta committed Jul 14, 2009
1 parent dc4f5a5 commit d37955a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/feedback.rb
Expand Up @@ -21,7 +21,7 @@ class Feedback < ActiveRecord::Base
validates_presence_of :name, :email, :if => Proc.new { |obj| obj.profile_id.blank? } 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 => Proc.new { |obj| obj.profile_id.blank? }
validates_captcha if RAILS_ENV == 'production'


after_save :send_feedback_to_admin after_save :send_feedback_to_admin


Expand Down

0 comments on commit d37955a

Please sign in to comment.