From 223c8d39273d59e472a5660a37f7a1b8f7441ff9 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Fri, 8 Nov 2013 19:38:46 -0300 Subject: [PATCH] spammable: remove fail-safe spam attribute check --- lib/spammable.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/spammable.rb b/lib/spammable.rb index 380a4ca..553c68d 100644 --- a/lib/spammable.rb +++ b/lib/spammable.rb @@ -1,6 +1,10 @@ module Spammable def self.included(recipient) - raise "This model (#{recipient.to_s}) should have a spam attribute!" if !recipient.new.respond_to?('spam=') + #TODO This line crashes the migration which includes the spam attribute to + # Task... =P + # No fail-safe until someone find out how to use this without crashing + # the migration process + #raise "This model (#{recipient.to_s}) should have a spam attribute!" if !recipient.new.respond_to?('spam=') recipient.extend(ClassMethods) end -- libgit2 0.21.2