Commit 223c8d39273d59e472a5660a37f7a1b8f7441ff9

Authored by Rodrigo Souto
1 parent da711118

spammable: remove fail-safe spam attribute check

This check, crashes the migration which will include the attribute o
Task. Until someone discover how to avoid that, the fail-safe is
commented.
Showing 1 changed file with 5 additions and 1 deletions   Show diff stats
lib/spammable.rb
1 1 module Spammable
2 2 def self.included(recipient)
3   - raise "This model (#{recipient.to_s}) should have a spam attribute!" if !recipient.new.respond_to?('spam=')
  3 + #TODO This line crashes the migration which includes the spam attribute to
  4 + # Task... =P
  5 + # No fail-safe until someone find out how to use this without crashing
  6 + # the migration process
  7 + #raise "This model (#{recipient.to_s}) should have a spam attribute!" if !recipient.new.respond_to?('spam=')
4 8 recipient.extend(ClassMethods)
5 9 end
6 10  
... ...