lib/nilify_blanks.rb in railsgarden-nilify_blanks-0.1.1 vs lib/nilify_blanks.rb in railsgarden-nilify_blanks-0.1.2

- old
+ new

@@ -5,9 +5,11 @@ end module ClassMethods def nilify_blanks(options = {}) return if self.included_modules.include?(NilifyBlanks::InstanceMethods) + return unless self.table_exists? + include NilifyBlanks::InstanceMethods if options[:only] options[:only] = [options[:only]] unless options[:only].is_a?(Array) options[:only] = options[:only].map(&:to_s) \ No newline at end of file