Skip to content
Browse files

protect existing value for config

  • Loading branch information...
1 parent 9655159 commit be79ced2a15d71fb65a05862b1fdbb5010f94cd1 @saturnflyer saturnflyer committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 db/migrate/007_add_preference_for_simple_spamcheck.rb
View
2 db/migrate/007_add_preference_for_simple_spamcheck.rb
@@ -1,6 +1,6 @@
class AddPreferenceForSimpleSpamcheck < ActiveRecord::Migration
def self.up
- unless Radiant::Config['comments.simple_spam_filter_required?']
+ if Radiant::Config['comments.simple_spam_filter_required?'].blank?
Radiant::Config.create(:key => 'comments.simple_spam_filter_required?', :value => true)
end
end

0 comments on commit be79ced

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