app/models/reputation_intermediate_value.rb in reputation-0.0.4 vs app/models/reputation_intermediate_value.rb in reputation-0.0.5

- old
+ new

@@ -9,14 +9,15 @@ validates_uniqueness_of :name, :scope => [:user_id, :rule_id] attr_accessible :user, :rule, :name, :value - def initialize(args = {}) - options = { + def initialize(*args) + args[0] = { :value => 0 - }.merge(args) + }.merge(args.first || {}) - super options + super *args end + end \ No newline at end of file