Permalink
Browse files

Debug callback (we do not accept options)

  • Loading branch information...
1 parent 550fe30 commit 243b973238d67d0a6b68fde6a8126de2413e652f @levmatta-umanni levmatta-umanni committed Oct 8, 2011
Showing with 4 additions and 3 deletions.
  1. +3 −2 lib/cassandra-model/callbacks.rb
  2. +1 −1 lib/cassandra-model/version.rb
@@ -192,8 +192,9 @@ def evaluate_method(method, *args, &block)
end
def should_run_callback?(*args)
- [options[:if]].flatten.compact.all? { |a| evaluate_method(a, *args) } &&
- ![options[:unless]].flatten.compact.any? { |a| evaluate_method(a, *args) }
+ true
+ #[options[:if]].flatten.compact.all? { |a| evaluate_method(a, *args) } &&
+ #![options[:unless]].flatten.compact.any? { |a| evaluate_method(a, *args) }
end
end
@@ -1,3 +1,3 @@
class CassandraModel
- VERSION = '0.1.11'
+ VERSION = '0.1.12'
end

0 comments on commit 243b973

Please sign in to comment.