Permalink
Browse files

Make Ruby 1.8.7 Happy

  • Loading branch information...
Katsuya Noguchi
Katsuya Noguchi committed Jul 16, 2012
1 parent 96abd19 commit b9b949d183d23dfb679080468c69224c1edca8c1
Showing with 1 addition and 1 deletion.
  1. BIN lib/reputation_system/.network.rb.swp
  2. +1 −1 lib/reputation_system/network.rb
Binary file not shown.
@@ -113,7 +113,7 @@ def data_for_derive_later
def create_scoped_reputation_def(class_name, reputation_name, scope, options)
raise ArgumentError, "#{reputation_name} does not have scope." unless has_scopes?(class_name, reputation_name)
- scope_options = options.select { |k, v| [:source, :aggregated_by].include? k }
+ scope_options = options.reject { |k, v| ![:source, :aggregated_by].include? k }
reputation_def = get_reputation_def(class_name, reputation_name)
unless is_primary_reputation?(class_name, reputation_name)
scope_options[:source] = []

0 comments on commit b9b949d

Please sign in to comment.